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.44 by jsr166, Sun Oct 4 02:11:44 2015 UTC vs.
Revision 1.45 by jsr166, Sun Oct 4 02:15:08 2015 UTC

# Line 389 | Line 389 | public class ScheduledExecutorSubclassTe
389                      assertEquals(1, p.getActiveCount());
390                      done.await();
391                  }});
392 <            assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
392 >            assertTrue(threadStarted.await(MEDIUM_DELAY_MS, MILLISECONDS));
393              assertEquals(1, p.getActiveCount());
394          } finally {
395              done.countDown();
# Line 482 | Line 482 | public class ScheduledExecutorSubclassTe
482                      assertEquals(1, p.getPoolSize());
483                      done.await();
484                  }});
485 <            assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
485 >            assertTrue(threadStarted.await(MEDIUM_DELAY_MS, MILLISECONDS));
486              assertEquals(1, p.getPoolSize());
487          } finally {
488              done.countDown();
# Line 507 | Line 507 | public class ScheduledExecutorSubclassTe
507                          threadStarted.countDown();
508                          done.await();
509                      }});
510 <            assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
510 >            assertTrue(threadStarted.await(MEDIUM_DELAY_MS, MILLISECONDS));
511              assertEquals(TASKS, p.getTaskCount());
512          } finally {
513              done.countDown();
# Line 579 | Line 579 | public class ScheduledExecutorSubclassTe
579                      threadStarted.countDown();
580                      done.await();
581                  }});
582 <            assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
582 >            assertTrue(threadStarted.await(MEDIUM_DELAY_MS, MILLISECONDS));
583              assertFalse(p.isTerminating());
584              done.countDown();
585          } finally {
# Line 604 | Line 604 | public class ScheduledExecutorSubclassTe
604                      threadStarted.countDown();
605                      done.await();
606                  }});
607 <            assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
607 >            assertTrue(threadStarted.await(MEDIUM_DELAY_MS, MILLISECONDS));
608              assertFalse(p.isTerminating());
609              done.countDown();
610          } finally {
# Line 632 | Line 632 | public class ScheduledExecutorSubclassTe
632                      }};
633                  tasks[i] = p.schedule(r, 1, MILLISECONDS);
634              }
635 <            assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
635 >            assertTrue(threadStarted.await(MEDIUM_DELAY_MS, MILLISECONDS));
636              BlockingQueue<Runnable> q = p.getQueue();
637              assertTrue(q.contains(tasks[tasks.length - 1]));
638              assertFalse(q.contains(tasks[0]));
# Line 659 | Line 659 | public class ScheduledExecutorSubclassTe
659                      }};
660                  tasks[i] = p.schedule(r, 1, MILLISECONDS);
661              }
662 <            assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
662 >            assertTrue(threadStarted.await(MEDIUM_DELAY_MS, MILLISECONDS));
663              BlockingQueue<Runnable> q = p.getQueue();
664              assertFalse(p.remove((Runnable)tasks[0]));
665              assertTrue(q.contains((Runnable)tasks[4]));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines