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

Comparing jsr166/src/test/tck/ScheduledExecutorSubclassTest.java (file contents):
Revision 1.53 by jsr166, Tue Oct 6 05:22:25 2015 UTC vs.
Revision 1.54 by jsr166, Tue Oct 6 05:30:44 2015 UTC

# Line 587 | Line 587 | public class ScheduledExecutorSubclassTe
587                      threadStarted.countDown();
588                      await(done);
589                  }});
590 <            assertTrue(threadStarted.await(LONG_DELAY_MS, MILLISECONDS));
590 >            await(threadStarted);
591              assertFalse(p.isTerminating());
592              done.countDown();
593              try { p.shutdown(); } catch (SecurityException ok) { return; }
# Line 614 | Line 614 | public class ScheduledExecutorSubclassTe
614                      }};
615                  tasks[i] = p.schedule(r, 1, MILLISECONDS);
616              }
617 <            assertTrue(threadStarted.await(LONG_DELAY_MS, MILLISECONDS));
617 >            await(threadStarted);
618              BlockingQueue<Runnable> q = p.getQueue();
619              assertTrue(q.contains(tasks[tasks.length - 1]));
620              assertFalse(q.contains(tasks[0]));
# Line 639 | Line 639 | public class ScheduledExecutorSubclassTe
639                      }};
640                  tasks[i] = p.schedule(r, 1, MILLISECONDS);
641              }
642 <            assertTrue(threadStarted.await(LONG_DELAY_MS, MILLISECONDS));
642 >            await(threadStarted);
643              BlockingQueue<Runnable> q = p.getQueue();
644              assertFalse(p.remove((Runnable)tasks[0]));
645              assertTrue(q.contains((Runnable)tasks[4]));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines