camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1381096 - /camel/trunk/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/policy/ZookeeperElectionTest.java
Date Wed, 05 Sep 2012 09:24:16 GMT
Author: ningjiang
Date: Wed Sep  5 09:24:15 2012
New Revision: 1381096

URL: http://svn.apache.org/viewvc?rev=1381096&view=rev
Log:
Try to fix the test error of ZookeeperElectionTest

Modified:
    camel/trunk/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/policy/ZookeeperElectionTest.java

Modified: camel/trunk/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/policy/ZookeeperElectionTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/policy/ZookeeperElectionTest.java?rev=1381096&r1=1381095&r2=1381096&view=diff
==============================================================================
--- camel/trunk/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/policy/ZookeeperElectionTest.java
(original)
+++ camel/trunk/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/policy/ZookeeperElectionTest.java
Wed Sep  5 09:24:15 2012
@@ -88,6 +88,8 @@ public class ZookeeperElectionTest exten
         ZooKeeperElection electionCandidate1 = createElectionCandidate(candidateOneContext,
2);
         assertTrue("The first candidate was not elected.", electionCandidate1.isMaster());
         ZooKeeperElection electionCandidate2 = createElectionCandidate(candidateTwoContext,
2);
+        // Need to wait for a while to Candidate2 to be elected.
+        Thread.sleep(2000);
         assertTrue("The second candidate should also be a master.", electionCandidate2.isMaster());
     }
 



Mime
View raw message