From 313d81ca2fb88a734f46e0e144d5a1a44ee1c4cd Mon Sep 17 00:00:00 2001 From: fjy Date: Thu, 13 Nov 2014 13:39:56 -0800 Subject: [PATCH] fix non-determininistic reference counting segment test --- .../io/druid/server/coordination/ServerManagerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/test/java/io/druid/server/coordination/ServerManagerTest.java b/server/src/test/java/io/druid/server/coordination/ServerManagerTest.java index 72a15d993ac..34f1df0d218 100644 --- a/server/src/test/java/io/druid/server/coordination/ServerManagerTest.java +++ b/server/src/test/java/io/druid/server/coordination/ServerManagerTest.java @@ -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()); @@ -720,7 +720,7 @@ public class ServerManagerTest notifyLatch.countDown(); try { - waitYieldLatch.await(25, TimeUnit.MILLISECONDS); + waitYieldLatch.await(); } catch (Exception e) { throw Throwables.propagate(e); @@ -733,7 +733,7 @@ public class ServerManagerTest public OutType get() { try { - waitLatch.await(25, TimeUnit.MILLISECONDS); + waitLatch.await(); } catch (Exception e) { throw Throwables.propagate(e);