# | Line 492 | Line 492 | public class DelayQueueTest extends JSR1 | |
---|---|---|
492 | final PDelay pdelay = new PDelay(0); | |
493 | Thread t = new Thread(new CheckedRunnable() { | |
494 | public void realRun() throws InterruptedException { | |
495 | – | assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS)); |
496 | – | assertSame(pdelay, q.poll(LONG_DELAY_MS, MILLISECONDS)); |
495 | try { | |
496 | + | assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS)); |
497 | + | assertSame(pdelay, q.poll(LONG_DELAY_MS, MILLISECONDS)); |
498 | q.poll(LONG_DELAY_MS, MILLISECONDS); | |
499 | shouldThrow(); | |
500 | } catch (InterruptedException success) {} |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |