--- jsr166/src/test/tck/PriorityBlockingQueueTest.java 2011/04/14 22:55:08 1.42 +++ jsr166/src/test/tck/PriorityBlockingQueueTest.java 2011/05/06 11:22:07 1.43 @@ -330,7 +330,7 @@ public class PriorityBlockingQueueTest e }}); t.start(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); assertEquals(q.size(), size); q.take(); t.interrupt(); @@ -351,7 +351,7 @@ public class PriorityBlockingQueueTest e }}); t.start(); - Thread.sleep(SMALL_DELAY_MS); + delay(SMALL_DELAY_MS); t.interrupt(); t.join(); } @@ -383,7 +383,7 @@ public class PriorityBlockingQueueTest e }}); t.start(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); t.interrupt(); t.join(); } @@ -698,7 +698,7 @@ public class PriorityBlockingQueueTest e executor.execute(new CheckedRunnable() { public void realRun() throws InterruptedException { - Thread.sleep(SMALL_DELAY_MS); + delay(SMALL_DELAY_MS); q.put(one); }});