Repository: curator
Updated Branches:
  refs/heads/persistent-watch cbc3b7985 -> d16734ab5


The lock needs a timeout


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

Branch: refs/heads/persistent-watch
Commit: d16734ab5f97f7521b5135c84a0d925a272beaee
Parents: cbc3b79
Author: randgalt <[email protected]>
Authored: Thu Oct 5 18:11:57 2017 +0200
Committer: randgalt <[email protected]>
Committed: Thu Oct 5 18:11:57 2017 +0200

----------------------------------------------------------------------
 .../curator/framework/recipes/locks/TestInterProcessMutexBase.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/d16734ab/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutexBase.java
----------------------------------------------------------------------
diff --git 
a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutexBase.java
 
b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutexBase.java
index cf44daf..eeefe01 100644
--- 
a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutexBase.java
+++ 
b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutexBase.java
@@ -115,7 +115,7 @@ public abstract class TestInterProcessMutexBase extends 
BaseClassForTests
                         public Object call() throws Exception
                         {
                             InterProcessLock lock = makeLock(client);
-                            lock.acquire();
+                            
Assert.assertTrue(lock.acquire(timing.forWaiting().milliseconds(), 
TimeUnit.MILLISECONDS));
                             try
                             {
                                 if ( isFirst.compareAndSet(true, false) )

Reply via email to