--- jsr166/src/test/tck/ThreadPoolExecutorTest.java 2015/10/04 01:27:32 1.68 +++ jsr166/src/test/tck/ThreadPoolExecutorTest.java 2015/10/04 01:29:09 1.69 @@ -217,8 +217,9 @@ public class ThreadPoolExecutorTest exte new ThreadPoolExecutor(1, 1, LONG_DELAY_MS, MILLISECONDS, new ArrayBlockingQueue(10)); - assertEquals(1, p.getCorePoolSize()); - joinPool(p); + try (PoolCleaner cleaner = cleaner(p)) { + assertEquals(1, p.getCorePoolSize()); + } } /**