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

Comparing jsr166/src/test/tck/ScheduledExecutorTest.java (file contents):
Revision 1.96 by jsr166, Mon Jan 8 02:04:15 2018 UTC vs.
Revision 1.98 by jsr166, Fri Sep 6 18:43:35 2019 UTC

# Line 607 | Line 607 | public class ScheduledExecutorTest exten
607          final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1);
608          try (PoolCleaner cleaner = cleaner(p, releaser)) {
609              for (int i = 0; i < tasks.length; i++)
610 <                tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(),
610 >                tasks[i] = p.schedule(possiblyInterruptedRunnable(SMALL_DELAY_MS),
611                                        LONG_DELAY_MS, MILLISECONDS);
612              int max = tasks.length;
613              if (tasks[4].cancel(true)) --max;
# Line 639 | Line 639 | public class ScheduledExecutorTest exten
639          Runnable waiter = new CheckedRunnable() { public void realRun() {
640              threadsStarted.countDown();
641              try {
642 <                MILLISECONDS.sleep(2 * LONG_DELAY_MS);
642 >                MILLISECONDS.sleep(LONGER_DELAY_MS);
643              } catch (InterruptedException success) {}
644              ran.getAndIncrement();
645          }};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines