fix non-determininistic reference counting segment test

This commit is contained in:
fjy 2014-11-13 13:39:56 -08:00
parent d4ca805cb9
commit 313d81ca2f
1 changed files with 3 additions and 3 deletions

View File

@ -315,7 +315,7 @@ public class ServerManagerTest
) )
); );
Assert.assertTrue("Operation must complete within 100ms", queryNotifyLatch.await(100, TimeUnit.MILLISECONDS)); queryNotifyLatch.await();
Assert.assertEquals(1, factory.getSegmentReferences().size()); Assert.assertEquals(1, factory.getSegmentReferences().size());
@ -720,7 +720,7 @@ public class ServerManagerTest
notifyLatch.countDown(); notifyLatch.countDown();
try { try {
waitYieldLatch.await(25, TimeUnit.MILLISECONDS); waitYieldLatch.await();
} }
catch (Exception e) { catch (Exception e) {
throw Throwables.propagate(e); throw Throwables.propagate(e);
@ -733,7 +733,7 @@ public class ServerManagerTest
public OutType get() public OutType get()
{ {
try { try {
waitLatch.await(25, TimeUnit.MILLISECONDS); waitLatch.await();
} }
catch (Exception e) { catch (Exception e) {
throw Throwables.propagate(e); throw Throwables.propagate(e);