ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/DelayQueueTest.java
(Generate patch)

Comparing jsr166/src/test/tck/DelayQueueTest.java (file contents):
Revision 1.84 by jsr166, Sat May 13 22:21:55 2017 UTC vs.
Revision 1.86 by jsr166, Sun May 14 00:48:20 2017 UTC

# 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines