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

Comparing jsr166/src/test/tck/CompletableFutureTest.java (file contents):
Revision 1.109 by jsr166, Fri Sep 4 02:50:00 2015 UTC vs.
Revision 1.111 by jsr166, Fri Sep 4 13:43:25 2015 UTC

# Line 3385 | Line 3385 | public class CompletableFutureTest exten
3385  
3386      /**
3387       * defaultExecutor by default returns the commonPool if
3388 <     * it supports at least one thread.
3388 >     * it supports more than one thread.
3389       */
3390      public void testDefaultExecutor() {
3391          CompletableFuture<Integer> f = new CompletableFuture<>();
# Line 3393 | Line 3393 | public class CompletableFutureTest exten
3393          Executor c = ForkJoinPool.commonPool();
3394          if (ForkJoinPool.getCommonPoolParallelism() > 1)
3395              assertSame(e, c);
3396 +        else
3397 +            assertNotSame(e, c);
3398      }
3399  
3400      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines