curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject curator git commit: Fixed newMembers test
Date Sat, 26 Sep 2015 03:05:58 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-265 e09388a5a -> a8ec17ece


Fixed newMembers test


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

Branch: refs/heads/CURATOR-265
Commit: a8ec17ece060484e0e6ce723568ed9505f6b82ef
Parents: e09388a
Author: randgalt <randgalt@apache.org>
Authored: Fri Sep 25 22:05:43 2015 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Fri Sep 25 22:05:43 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/curator/blob/a8ec17ec/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 ca00cba..e7d2229 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
@@ -282,7 +282,7 @@ public class TestReconfiguration extends BaseClassForTests
             client.start();
 
             QuorumVerifier oldConfig = toQuorumVerifier(client.getConfig().forEnsemble());
-            Assert.assertEquals(cluster.getInstances().size(), 5);
+            Assert.assertEquals(oldConfig.getAllMembers().size(), 5);
             assertConfig(oldConfig, cluster.getInstances());
 
             CountDownLatch latch = setChangeWaiter(client);
@@ -291,6 +291,7 @@ public class TestReconfiguration extends BaseClassForTests
 
             Assert.assertTrue(timing.awaitLatch(latch));
             QuorumVerifier newConfig = toQuorumVerifier(client.getConfig().forEnsemble());
+            Assert.assertEquals(newConfig.getAllMembers().size(), 3);
             assertConfig(newConfig, smallCluster);
         }
     }


Mime
View raw message