# | Line 485 | Line 485 | public class ScheduledExecutorTest exten | |
---|---|---|
485 | try { | |
486 | p.execute(new CheckedRunnable() { | |
487 | public void realRun() throws InterruptedException { | |
488 | – | threadStarted.countDown(); |
488 | assertFalse(p.isTerminated()); | |
489 | + | threadStarted.countDown(); |
490 | done.await(); | |
491 | }}); | |
492 | assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS)); | |
493 | + | assertFalse(p.isTerminating()); |
494 | done.countDown(); | |
495 | } finally { | |
496 | try { p.shutdown(); } catch (SecurityException ok) { return; } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |