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

Comparing jsr166/src/test/tck/LinkedTransferQueueTest.java (file contents):
Revision 1.84 by jsr166, Fri Sep 6 22:43:50 2019 UTC vs.
Revision 1.85 by jsr166, Fri Sep 6 22:47:02 2019 UTC

# Line 950 | Line 950 | public class LinkedTransferQueueTest ext
950  
951          Thread t = newStartedThread(new CheckedRunnable() {
952              public void realRun() throws InterruptedException {
953                long startTime = System.nanoTime();
953                  Thread.currentThread().interrupt();
954                  try {
955                      q.tryTransfer(new Object(), randomTimeout(), randomTimeUnit());
# Line 960 | Line 959 | public class LinkedTransferQueueTest ext
959  
960                  pleaseInterrupt.countDown();
961                  try {
962 <                    q.tryTransfer(new Object(), LONG_DELAY_MS, MILLISECONDS);
962 >                    q.tryTransfer(new Object(), LONGER_DELAY_MS, MILLISECONDS);
963                      shouldThrow();
964                  } catch (InterruptedException success) {}
965                  assertFalse(Thread.interrupted());
967
968                assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
966              }});
967  
968          await(pleaseInterrupt);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines