Repository: curator
Updated Branches:
  refs/heads/CURATOR-351 da7f18c61 -> b84d351a5


assertTrue for node.waitForInitialCreate


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

Branch: refs/heads/CURATOR-351
Commit: b84d351a5f3c44ab5450c690b462388cb0a90697
Parents: da7f18c
Author: randgalt <randg...@apache.org>
Authored: Mon Apr 17 20:26:59 2017 -0500
Committer: randgalt <randg...@apache.org>
Committed: Mon Apr 17 20:26:59 2017 -0500

----------------------------------------------------------------------
 .../curator/framework/recipes/nodes/TestPersistentTtlNode.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/b84d351a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentTtlNode.java
----------------------------------------------------------------------
diff --git 
a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentTtlNode.java
 
b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentTtlNode.java
index 2224bbf..43f5cc0 100644
--- 
a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentTtlNode.java
+++ 
b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentTtlNode.java
@@ -66,7 +66,7 @@ public class TestPersistentTtlNode extends BaseClassForTests
             try (PersistentTtlNode node = new PersistentTtlNode(client, 
"/test", 100, new byte[0]))
             {
                 node.start();
-                node.waitForInitialCreate(timing.session(), 
TimeUnit.MILLISECONDS);
+                Assert.assertTrue(node.waitForInitialCreate(timing.session(), 
TimeUnit.MILLISECONDS));
 
                 for ( int i = 0; i < 10; ++i )
                 {
@@ -91,7 +91,7 @@ public class TestPersistentTtlNode extends BaseClassForTests
             try (PersistentTtlNode node = new PersistentTtlNode(client, 
"/test", 10, new byte[0]))
             {
                 node.start();
-                node.waitForInitialCreate(timing.session(), 
TimeUnit.MILLISECONDS);
+                Assert.assertTrue(node.waitForInitialCreate(timing.session(), 
TimeUnit.MILLISECONDS));
 
                 for ( int i = 0; i < 10; ++i )
                 {
@@ -131,7 +131,7 @@ public class TestPersistentTtlNode extends BaseClassForTests
                     cache.getListenable().addListener(listener);
 
                     node.start();
-                    node.waitForInitialCreate(timing.session(), 
TimeUnit.MILLISECONDS);
+                    
Assert.assertTrue(node.waitForInitialCreate(timing.session(), 
TimeUnit.MILLISECONDS));
                     cache.start(BUILD_INITIAL_CACHE);
 
                     Assert.assertEquals(changes.availablePermits(), 0);

Reply via email to