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.83 by jsr166, Thu Sep 5 21:11:13 2019 UTC vs.
Revision 1.84 by jsr166, Fri Sep 6 22:43:50 2019 UTC

# Line 314 | Line 314 | public class LinkedTransferQueueTest ext
314          final BlockingQueue<Integer> q = populatedQueue(SIZE);
315          Thread t = newStartedThread(new CheckedRunnable() {
316              public void realRun() throws InterruptedException {
317                long startTime = System.nanoTime();
317                  Thread.currentThread().interrupt();
318                  for (int i = 0; i < SIZE; ++i)
319                      assertEquals(i, (int) q.poll(randomTimeout(), randomTimeUnit()));
# Line 323 | Line 322 | public class LinkedTransferQueueTest ext
322                      shouldThrow();
323                  } catch (InterruptedException success) {}
324                  assertFalse(Thread.interrupted());
326                assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
325              }});
326  
327          awaitTermination(t);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines