# | Line 909 | Line 909 | public class DelayQueueTest extends JSR1 | |
---|---|---|
909 | */ | |
910 | public void testTimedPollDelayed() { | |
911 | DelayQueue q = new DelayQueue(); | |
912 | < | q.add(new NanoDelay(Long.MAX_VALUE)); |
912 | > | q.add(new NanoDelay(LONG_DELAY_MS * 1000000L)); |
913 | try { | |
914 | assertNull(q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS)); | |
915 | } catch (Exception ex) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |