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.55 by jsr166, Sat Apr 25 04:55:30 2015 UTC vs.
Revision 1.61 by jsr166, Sun Oct 4 00:59:08 2015 UTC

# Line 981 | Line 981 | public class ForkJoinPoolTest extends JS
981       * timed invokeAll(c) returns results of all completed tasks in c
982       */
983      public void testTimedInvokeAll5() throws Throwable {
984 <        ExecutorService e = new ForkJoinPool(1);
985 <        try {
984 >        ForkJoinPool e = new ForkJoinPool(1);
985 >        try (PoolCleaner cleaner = cleaner(e)) {
986              List<Callable<String>> l = new ArrayList<Callable<String>>();
987              l.add(new StringTask());
988              l.add(new StringTask());
989              List<Future<String>> futures
990 <                = e.invokeAll(l, MEDIUM_DELAY_MS, MILLISECONDS);
990 >                = e.invokeAll(l, LONG_DELAY_MS, MILLISECONDS);
991              assertEquals(2, futures.size());
992              for (Future<String> future : futures)
993                  assertSame(TEST_STRING, future.get());
994        } finally {
995            joinPool(e);
994          }
995      }
996  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines