# | Line 428 | Line 428 | public class DelayQueueTest extends JSR1 | |
---|---|---|
428 | shouldThrow(); | |
429 | } catch (InterruptedException success) {} | |
430 | assertFalse(Thread.interrupted()); | |
431 | + | |
432 | assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); | |
433 | }}); | |
434 | ||
435 | await(pleaseInterrupt); | |
436 | < | assertThreadStaysAlive(t); |
436 | > | assertThreadBlocks(t, Thread.State.TIMED_WAITING); |
437 | t.interrupt(); | |
438 | awaitTermination(t); | |
439 | checkEmpty(q); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |