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.158 by jsr166, Mon Jun 27 21:17:49 2016 UTC vs.
Revision 1.159 by jsr166, Mon Jun 27 21:39:37 2016 UTC

# Line 4143 | Line 4143 | public class CompletableFutureTest exten
4143       * A demo of scalability - runtime is O(n).
4144       */
4145      public void testManyDependents() throws Throwable {
4146 <        final int n = 1_000;
4146 >        final int n = expensiveTests ? 1_000_000 : 10;
4147          final CompletableFuture<Void> head = new CompletableFuture<>();
4148          final CompletableFuture<Void> complete = CompletableFuture.completedFuture((Void)null);
4149          final AtomicInteger count = new AtomicInteger(0);
# Line 4172 | Line 4172 | public class CompletableFutureTest exten
4172  
4173      /** ant -Dvmoptions=-Xmx8m -Djsr166.tckTestClass=CompletableFutureTest tck */
4174      public void testCoCompletionGarbage() throws Throwable {
4175 <        // final int n = 3_000_000;
4176 <        final int n = 100;
4175 >        final int n = expensiveTests ? 1_000_000 : 10;
4176          final CompletableFuture<Integer> incomplete = new CompletableFuture<>();
4177          CompletableFuture<Integer> f;
4178          for (int i = 0; i < n; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines