--- jsr166/src/test/tck/ScheduledExecutorTest.java 2004/01/22 14:07:50 1.19 +++ jsr166/src/test/tck/ScheduledExecutorTest.java 2004/01/22 15:17:35 1.21 @@ -144,7 +144,6 @@ public class ScheduledExecutorTest exten // an execution per SHORT delay, but no more than one SHORT more assertTrue(c >= SMALL_DELAY_MS / SHORT_DELAY_MS); assertTrue(c <= SMALL_DELAY_MS + SHORT_DELAY_MS); - assertTrue(h.isDone()); joinPool(p1); } catch(Exception e){ unexpectedException(); @@ -165,7 +164,6 @@ public class ScheduledExecutorTest exten int c = counter.count.get(); assertTrue(c >= SMALL_DELAY_MS / SHORT_DELAY_MS); assertTrue(c <= SMALL_DELAY_MS + SHORT_DELAY_MS); - assertTrue(h.isDone()); joinPool(p1); } catch(Exception e){ unexpectedException(); @@ -497,7 +495,7 @@ public class ScheduledExecutorTest exten ScheduledThreadPoolExecutor p1 = new ScheduledThreadPoolExecutor(1); ScheduledFuture[] tasks = new ScheduledFuture[5]; for(int i = 0; i < 5; i++){ - tasks[i] = p1.schedule(new SmallPossiblyInterruptedRunnable(), SHORT_DELAY_MS, TimeUnit.MILLISECONDS); + tasks[i] = p1.schedule(new SmallPossiblyInterruptedRunnable(), 1, TimeUnit.MILLISECONDS); } try { Thread.sleep(SHORT_DELAY_MS);