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

Comparing jsr166/src/test/tck/SynchronousQueueTest.java (file contents):
Revision 1.65 by jsr166, Tue Aug 13 23:06:39 2019 UTC vs.
Revision 1.67 by jsr166, Mon Dec 16 22:55:54 2019 UTC

# Line 208 | Line 208 | public class SynchronousQueueTest extend
208  
209                  pleaseInterrupt.countDown();
210                  try {
211 <                    q.offer(new Object(), LONG_DELAY_MS, MILLISECONDS);
211 >                    q.offer(new Object(), LONGER_DELAY_MS, MILLISECONDS);
212                      shouldThrow();
213                  } catch (InterruptedException success) {}
214                  assertFalse(Thread.interrupted());
215
216                assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
215              }});
216  
217          await(pleaseInterrupt);
# Line 439 | Line 437 | public class SynchronousQueueTest extend
437      public void testToArray_null(boolean fair) {
438          final SynchronousQueue q = new SynchronousQueue(fair);
439          try {
440 <            Object[] o = q.toArray((Object[])null);
440 >            Object[] unused = q.toArray((Object[])null);
441              shouldThrow();
442          } catch (NullPointerException success) {}
443      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines