--- jsr166/src/test/tck/ExecutorCompletionServiceTest.java 2011/03/15 19:47:06 1.13 +++ jsr166/src/test/tck/ExecutorCompletionServiceTest.java 2011/05/27 19:42:42 1.15 @@ -6,7 +6,6 @@ * Pat Fisher, Mike Judd. */ - import junit.framework.*; import java.util.*; import java.util.concurrent.*; @@ -23,7 +22,6 @@ public class ExecutorCompletionServiceTe return new TestSuite(ExecutorCompletionServiceTest.class); } - /** * Creating a new ECS with null Executor throw NPE */ @@ -119,7 +117,7 @@ public class ExecutorCompletionServiceTe assertNull(ecs.poll()); Callable c = new StringTask(); ecs.submit(c); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); for (;;) { Future f = ecs.poll(); if (f != null) {