Only change from 5 to 4 to avoid flaky test

Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/51eaa426
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/51eaa426
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/51eaa426

Branch: refs/heads/CURATOR-411
Commit: 51eaa426e681c6521b0e313d822d524a9d4efbe1
Parents: fb972db
Author: randgalt <[email protected]>
Authored: Wed May 10 13:33:05 2017 +0200
Committer: randgalt <[email protected]>
Committed: Wed May 10 13:33:05 2017 +0200

----------------------------------------------------------------------
 .../org/apache/curator/framework/imps/TestReconfiguration.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/51eaa426/curator-framework/src/test/java/org/apache/curator/framework/imps/TestReconfiguration.java
----------------------------------------------------------------------
diff --git 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestReconfiguration.java
 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestReconfiguration.java
index 53b9c5f..5ed8a9b 100644
--- 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestReconfiguration.java
+++ 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestReconfiguration.java
@@ -293,7 +293,7 @@ public class TestReconfiguration extends BaseClassForTests
         cluster = new TestingCluster(5);
         List<TestingZooKeeperServer> servers = cluster.getServers();
         List<InstanceSpec> smallCluster = Lists.newArrayList();
-        for ( int i = 0; i < 3; ++i )   // only start 3 of the 5
+        for ( int i = 0; i < 4; ++i )   // only start 4 of the 5
         {
             TestingZooKeeperServer server = servers.get(i);
             server.start();
@@ -315,7 +315,7 @@ public class TestReconfiguration extends BaseClassForTests
             Assert.assertTrue(timing.awaitLatch(latch));
             byte[] newConfigData = client.getConfig().forEnsemble();
             QuorumVerifier newConfig = toQuorumVerifier(newConfigData);
-            Assert.assertEquals(newConfig.getAllMembers().size(), 3);
+            Assert.assertEquals(newConfig.getAllMembers().size(), 4);
             assertConfig(newConfig, smallCluster);
             
Assert.assertEquals(EnsembleTracker.configToConnectionString(newConfig), 
ensembleProvider.getConnectionString());
         }

Reply via email to