--- jsr166/src/test/tck/ThreadPoolExecutorTest.java 2015/10/06 05:12:16 1.106 +++ jsr166/src/test/tck/ThreadPoolExecutorTest.java 2015/10/06 05:22:25 1.107 @@ -344,7 +344,7 @@ public class ThreadPoolExecutorTest exte await(done); assertEquals(THREADS, p.getLargestPoolSize()); }}); - assertTrue(threadsStarted.await(LONG_DELAY_MS, MILLISECONDS)); + await(threadsStarted); assertEquals(THREADS, p.getLargestPoolSize()); } assertEquals(THREADS, p.getLargestPoolSize()); @@ -662,7 +662,7 @@ public class ThreadPoolExecutorTest exte }}; for (int i = 0; i < count; i++) p.execute(waiter); - assertTrue(threadsStarted.await(LONG_DELAY_MS, MILLISECONDS)); + await(threadsStarted); assertEquals(poolSize, p.getActiveCount()); assertEquals(0, p.getCompletedTaskCount()); final List queuedTasks;