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.143 by jsr166, Sun Apr 3 17:09:46 2016 UTC vs.
Revision 1.144 by jsr166, Sat Apr 9 19:10:13 2016 UTC

# Line 640 | Line 640 | public class CompletableFutureTest exten
640  
641          ASYNC {
642              public void checkExecutionMode() {
643 <                // If tests are added that may run across different
644 <                // pools, this needs to be weakened to no-op.
645 <                ForkJoinPool p = ForkJoinTask.getPool();
646 <                assertTrue(p == null ||
647 <                           (defaultExecutorIsCommonPool &&
648 <                            p == ForkJoinPool.commonPool()));
643 >                assertEquals(defaultExecutorIsCommonPool,
644 >                             (ForkJoinPool.commonPool() == ForkJoinTask.getPool()));
645              }
646              public CompletableFuture<Void> runAsync(Runnable a) {
647                  return CompletableFuture.runAsync(a);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines