curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject [1/3] curator git commit: Change to IllegalStateException
Date Tue, 17 Nov 2015 19:39:45 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-281 [created] 2d0d2b122
  refs/heads/CURATOR-3.0 598141892 -> 2d0d2b122


Change to IllegalStateException

Signed-off-by: Mike Drob <mdrob@apache.org>


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

Branch: refs/heads/CURATOR-3.0
Commit: 9efc76643a1b3d356b153498080937fb906b1bfd
Parents: ac266c9
Author: Grant Henke <granthenke@gmail.com>
Authored: Fri Nov 13 10:05:23 2015 -0600
Committer: Mike Drob <mdrob@apache.org>
Committed: Tue Nov 17 13:30:11 2015 -0600

----------------------------------------------------------------------
 .../main/java/org/apache/curator/test/TestingZooKeeperMain.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/9efc7664/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
----------------------------------------------------------------------
diff --git a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
index 284ca24..b2389e9 100644
--- a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
+++ b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
@@ -131,7 +131,8 @@ public class TestingZooKeeperMain implements ZooKeeperMainFace
     @Override
     public void blockUntilStarted() throws Exception
     {
-        assert timing.awaitLatch(latch);
+        if(!timing.awaitLatch(latch))
+            throw new IllegalStateException("Timed out waiting for watch removal");
 
         if ( zkServer != null )
         {


Mime
View raw message