You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2022/12/13 05:43:48 UTC
[iotdb] 03/03: fix code smell
This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch cp-jira5185
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit bdd01dbf7f40a98015dc85ddff6e56be9429449f
Author: OneSizeFitQuorum <ta...@apache.org>
AuthorDate: Tue Dec 13 13:39:22 2022 +0800
fix code smell
Signed-off-by: OneSizeFitQuorum <ta...@apache.org>
---
.../src/test/java/org/apache/iotdb/consensus/iot/StabilityTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/consensus/src/test/java/org/apache/iotdb/consensus/iot/StabilityTest.java b/consensus/src/test/java/org/apache/iotdb/consensus/iot/StabilityTest.java
index 215940f7ed..474515fe3a 100644
--- a/consensus/src/test/java/org/apache/iotdb/consensus/iot/StabilityTest.java
+++ b/consensus/src/test/java/org/apache/iotdb/consensus/iot/StabilityTest.java
@@ -114,7 +114,7 @@ public class StabilityTest {
File[] versionFiles1 =
dataDir.listFiles((dir, name) -> name.startsWith(IoTConsensusServerImpl.SNAPSHOT_DIR_NAME));
Assert.assertNotNull(versionFiles1);
- Assert.assertEquals(versionFiles1.length, 1);
+ Assert.assertEquals(1, versionFiles1.length);
consensusImpl.triggerSnapshot(dataRegionId);
consensusImpl.triggerSnapshot(dataRegionId);
@@ -122,7 +122,7 @@ public class StabilityTest {
File[] versionFiles2 =
dataDir.listFiles((dir, name) -> name.startsWith(IoTConsensusServerImpl.SNAPSHOT_DIR_NAME));
Assert.assertNotNull(versionFiles2);
- Assert.assertEquals(versionFiles2.length, 1);
+ Assert.assertEquals(1, versionFiles2.length);
Assert.assertNotEquals(versionFiles1[0].getName(), versionFiles2[0].getName());
}