# | Line 259 | Line 259 | public class ForkJoinPoolTest extends JS | |
---|---|---|
259 | public void testisQuiescent() throws InterruptedException { | |
260 | ForkJoinPool p = new ForkJoinPool(2); | |
261 | try { | |
262 | + | assertTrue(p.isQuiescent()); |
263 | p.invoke(new FibTask(20)); | |
264 | assertSame(ForkJoinPool.defaultForkJoinWorkerThreadFactory, | |
265 | p.getFactory()); | |
266 | < | Thread.sleep(MEDIUM_DELAY_MS); |
266 | > | Thread.sleep(SMALL_DELAY_MS); |
267 | assertTrue(p.isQuiescent()); | |
268 | assertFalse(p.getAsyncMode()); | |
269 | assertEquals(0, p.getActiveThreadCount()); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |