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 <md...@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 <granthe...@gmail.com>
Authored: Fri Nov 13 10:05:23 2015 -0600
Committer: Mike Drob <md...@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 )
         {

Reply via email to