470 |
|
assertFalse(p.awaitTermination(Long.MIN_VALUE, MILLISECONDS)); |
471 |
|
assertFalse(p.awaitTermination(-1L, NANOSECONDS)); |
472 |
|
assertFalse(p.awaitTermination(-1L, MILLISECONDS)); |
473 |
< |
assertFalse(p.awaitTermination(0L, NANOSECONDS)); |
474 |
< |
assertFalse(p.awaitTermination(0L, MILLISECONDS)); |
473 |
> |
assertFalse(p.awaitTermination(randomExpiredTimeout(), |
474 |
> |
randomTimeUnit())); |
475 |
|
long timeoutNanos = 999999L; |
476 |
|
long startTime = System.nanoTime(); |
477 |
|
assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); |