Xiangdong Huang created IOTDB-1354: -------------------------------------- Summary: SlotPartitionTableTest error because of incorrect Mock Key: IOTDB-1354 URL: https://issues.apache.org/jira/browse/IOTDB-1354 Project: Apache IoTDB Issue Type: Bug Components: Cluster Reporter: Xiangdong Huang
When running the Tests using `mvn test`, SlotPartitionTableTest will be skipped: {code:java} [INFO] Running org.apache.iotdb.cluster.partition.SlotPartitionTableTest [WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.014 s - in org.apache.iotdb.cluster.partition.SlotPartitionTableTest {code} I do not know why, but that is why we never find this failed test... When running the test in IDEA, all tests will fail, because the snapets: {code:java} for (int i = 0; i < 20; i++) { mManager[i] = MManagerWhiteBox.newMManager("target/schemas/mlog_" + i); initMockMManager(i, mManager[i], storageNames, nodeSGs[i]); Whitebox.setInternalState(tables[i], "mManager", mManager[i]); } {code} `assertGetHeaderGroup` has another error: {code:java} assertEquals( new Node( "localhost", 30000 + last, last, 40000 + last, Constants.RPC_PORT + start, "localhost"), group.get(replica_size - 1)); {code} It is obvious that the PRC_PORT should be `Constants.RPC_PORT + last` -- This message was sent by Atlassian Jira (v8.3.4#803005)