--- jsr166/src/test/tck/ForkJoinPoolTest.java 2011/05/29 13:45:35 1.43 +++ jsr166/src/test/tck/ForkJoinPoolTest.java 2012/01/10 13:48:27 1.44 @@ -242,8 +242,11 @@ public class ForkJoinPoolTest extends JS eh, false); try { assertSame(eh, p.getUncaughtExceptionHandler()); - p.execute(new FibTask(8)); - assertTrue(uehInvoked.await(MEDIUM_DELAY_MS, MILLISECONDS)); + try { + p.execute(new FibTask(8)); + assertTrue(uehInvoked.await(10000, MILLISECONDS)); + } catch(RejectedExecutionException ok) { + } } finally { p.shutdownNow(); // failure might have prevented processing task joinPool(p);