--- jsr166/src/test/tck/DelayQueueTest.java 2011/04/14 22:55:08 1.48 +++ jsr166/src/test/tck/DelayQueueTest.java 2011/05/06 11:22:07 1.49 @@ -353,7 +353,7 @@ public class DelayQueueTest extends JSR1 }}); t.start(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); q.take(); t.interrupt(); t.join(); @@ -373,7 +373,7 @@ public class DelayQueueTest extends JSR1 }}); t.start(); - Thread.sleep(SMALL_DELAY_MS); + delay(SMALL_DELAY_MS); t.interrupt(); t.join(); } @@ -406,7 +406,7 @@ public class DelayQueueTest extends JSR1 assertTrue(millisElapsedSince(t0) >= SHORT_DELAY_MS); }}); threadStarted.await(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); assertTrue(t.isAlive()); t.interrupt(); awaitTermination(t, MEDIUM_DELAY_MS); @@ -430,7 +430,7 @@ public class DelayQueueTest extends JSR1 }}); t.start(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); t.interrupt(); t.join(); } @@ -487,7 +487,7 @@ public class DelayQueueTest extends JSR1 }}); t.start(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); t.interrupt(); t.join(); } @@ -773,7 +773,7 @@ public class DelayQueueTest extends JSR1 executor.execute(new CheckedRunnable() { public void realRun() throws InterruptedException { - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); q.put(new PDelay(1)); }});