Brian O'Connor

Increasing timeout limit in BoundedThreadPoolTest

It can fail on slower systems

Change-Id: Icc93945aeb09a79d5ace84606e286cabd7e6c4ee
...@@ -171,7 +171,7 @@ public final class BoundedThreadPoolTest { ...@@ -171,7 +171,7 @@ public final class BoundedThreadPoolTest {
171 latches.remove(0).countDown(); // release the second thread 171 latches.remove(0).countDown(); // release the second thread
172 172
173 assertTrue("Thread should be unblocked", 173 assertTrue("Thread should be unblocked",
174 - myLatch.await(10, TimeUnit.MILLISECONDS)); 174 + myLatch.await(1, TimeUnit.SECONDS));
175 long delta = System.nanoTime() - start; 175 long delta = System.nanoTime() - start;
176 double load = exec.getQueue().size() / (double) maxQueueSize; 176 double load = exec.getQueue().size() / (double) maxQueueSize;
177 assertTrue("Load is greater than threshold", load <= 0.8); 177 assertTrue("Load is greater than threshold", load <= 0.8);
......