[jboss-cvs] JBossAS SVN: r87537 - branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/lock.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Apr 19 13:35:43 EDT 2009
Author: bstansberry at jboss.com
Date: 2009-04-19 13:35:42 -0400 (Sun, 19 Apr 2009)
New Revision: 87537
Modified:
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/lock/ClusteredLockManagerTestBase.java
Log:
Deal with race condition in testLocalLockingStateRejectsSuperiorRemoteCaller
Modified: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/lock/ClusteredLockManagerTestBase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/lock/ClusteredLockManagerTestBase.java 2009-04-19 17:22:24 UTC (rev 87536)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/lock/ClusteredLockManagerTestBase.java 2009-04-19 17:35:42 UTC (rev 87537)
@@ -435,14 +435,14 @@
CountDownLatch answerAwaitLatch = new CountDownLatch(1);
CountDownLatch answerStartLatch = new CountDownLatch(1);
CountDownLatch answerDoneLatch = new CountDownLatch(1);
- BlockingAnswer<Boolean> caller1Answer = new BlockingAnswer<Boolean>(Boolean.TRUE, answerAwaitLatch, answerStartLatch, answerDoneLatch);
+ BlockingAnswer<Boolean> caller1Answer = new BlockingAnswer<Boolean>(Boolean.TRUE, answerAwaitLatch, answerStartLatch, null);
handler.lockFromCluster(eq("test"), eq(node1), anyLong());
expectLastCall().andAnswer(caller1Answer);
replay(partition);
replay(handler);
- LocalLockCaller winner = new LocalLockCaller(testee, null, null, null);
+ LocalLockCaller winner = new LocalLockCaller(testee, null, null, answerDoneLatch);
Thread t1 = new Thread(winner);
t1.setDaemon(true);
More information about the jboss-cvs-commits
mailing list