Fix unstable test disable partition

Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/0f0d4177
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/0f0d4177
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/0f0d4177

Branch: refs/heads/master
Commit: 0f0d4177e830f9f1f3a5f26abeae0b366e9b1863
Parents: 1e1cc41
Author: Junkai Xue <[email protected]>
Authored: Thu Oct 25 10:55:19 2018 -0700
Committer: Junkai Xue <[email protected]>
Committed: Thu Nov 1 17:10:41 2018 -0700

----------------------------------------------------------------------
 .../org/apache/helix/integration/manager/TestZkHelixAdmin.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/0f0d4177/helix-core/src/test/java/org/apache/helix/integration/manager/TestZkHelixAdmin.java
----------------------------------------------------------------------
diff --git 
a/helix-core/src/test/java/org/apache/helix/integration/manager/TestZkHelixAdmin.java
 
b/helix-core/src/test/java/org/apache/helix/integration/manager/TestZkHelixAdmin.java
index c2da24d..5141a8d 100644
--- 
a/helix-core/src/test/java/org/apache/helix/integration/manager/TestZkHelixAdmin.java
+++ 
b/helix-core/src/test/java/org/apache/helix/integration/manager/TestZkHelixAdmin.java
@@ -60,6 +60,8 @@ public class TestZkHelixAdmin extends TaskTestBase {
   public void testEnableDisablePartitions() throws InterruptedException {
     _admin.enablePartition(false, CLUSTER_NAME, (PARTICIPANT_PREFIX + "_" + 
_startPort),
         WorkflowGenerator.DEFAULT_TGT_DB, Arrays.asList(new String[] { 
"TestDB_0", "TestDB_2" }));
+    _admin.enablePartition(false, CLUSTER_NAME, (PARTICIPANT_PREFIX + "_" + 
(_startPort + 1)),
+        WorkflowGenerator.DEFAULT_TGT_DB, Arrays.asList(new String[] { 
"TestDB_0", "TestDB_2" }));
 
     IdealState idealState =
         _admin.getResourceIdealState(CLUSTER_NAME, 
WorkflowGenerator.DEFAULT_TGT_DB);

Reply via email to