# | Line 630 | Line 630 | public class JSR166TestCase extends Test | |
---|---|---|
630 | void joinPool(ExecutorService exec) { | |
631 | try { | |
632 | exec.shutdown(); | |
633 | < | assertTrue("ExecutorService did not terminate in a timely manner", |
634 | < | exec.awaitTermination(2 * LONG_DELAY_MS, MILLISECONDS)); |
633 | > | if (!exec.awaitTermination(2 * LONG_DELAY_MS, MILLISECONDS)) |
634 | > | fail("ExecutorService " + exec + |
635 | > | " did not terminate in a timely manner"); |
636 | } catch (SecurityException ok) { | |
637 | // Allowed in case test doesn't have privs | |
638 | } catch (InterruptedException ie) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |