--- jsr166/src/test/tck/ExecutorCompletionServiceTest.java 2010/08/25 01:44:48 1.12 +++ jsr166/src/test/tck/ExecutorCompletionServiceTest.java 2011/05/27 19:42:42 1.15 @@ -1,12 +1,11 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain + * http://creativecommons.org/publicdomain/zero/1.0/ * Other contributors include Andrew Wright, Jeffrey Hayes, * 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) {