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

Comparing jsr166/src/test/tck/ForkJoinPoolTest.java (file contents):
Revision 1.67 by jsr166, Thu Oct 8 03:03:36 2015 UTC vs.
Revision 1.68 by jsr166, Thu Oct 8 03:08:37 2015 UTC

# Line 840 | Line 840 | public class ForkJoinPoolTest extends JS
840      public void testTimedInvokeAny5() throws Throwable {
841          ExecutorService e = new ForkJoinPool(1);
842          try (PoolCleaner cleaner = cleaner(e)) {
843 +            long startTime = System.nanoTime();
844              List<Callable<String>> l = new ArrayList<Callable<String>>();
845              l.add(new StringTask());
846              l.add(new StringTask());
847 <            String result = e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS);
847 >            String result = e.invokeAny(l, LONG_DELAY_MS, MILLISECONDS);
848              assertSame(TEST_STRING, result);
849 +            assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
850          }
851      }
852  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines