383 |
|
AssertionError ae = new AssertionError("unexpected exception: " + t); |
384 |
|
t.initCause(t); |
385 |
|
throw ae; |
386 |
< |
} |
386 |
> |
} |
387 |
|
} |
388 |
|
|
389 |
|
/** |
392 |
|
public void joinPool(ExecutorService exec) { |
393 |
|
try { |
394 |
|
exec.shutdown(); |
395 |
< |
assertTrue(exec.awaitTermination(LONG_DELAY_MS, MILLISECONDS)); |
395 |
> |
assertTrue("ExecutorService did not terminate in a timely manner", |
396 |
> |
exec.awaitTermination(LONG_DELAY_MS, MILLISECONDS)); |
397 |
|
} catch (SecurityException ok) { |
398 |
|
// Allowed in case test doesn't have privs |
399 |
|
} catch (InterruptedException ie) { |