Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHristo Iliev2011-06-01 02:26:25 -0400
committerHristo Iliev2011-06-01 02:26:25 -0400
commit588261c02d38d4a0523f62b0f901bdafc0a1ff35 (patch)
treed7c70dda031c5ea8c7950e9e7307c41c287e5534 /org.eclipse.virgo.kernel.services
parent8e7c15731fcdf68c042008d8fb58360e060d6bb5 (diff)
downloadorg.eclipse.virgo.kernel-588261c02d38d4a0523f62b0f901bdafc0a1ff35.tar.gz
org.eclipse.virgo.kernel-588261c02d38d4a0523f62b0f901bdafc0a1ff35.tar.xz
org.eclipse.virgo.kernel-588261c02d38d4a0523f62b0f901bdafc0a1ff35.zip
Added wait before collecting the number of completed tasks for executor
Diffstat (limited to 'org.eclipse.virgo.kernel.services')
-rw-r--r--org.eclipse.virgo.kernel.services/src/test/java/org/eclipse/virgo/kernel/services/concurrent/KernelThreadPoolExecutorTests.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.virgo.kernel.services/src/test/java/org/eclipse/virgo/kernel/services/concurrent/KernelThreadPoolExecutorTests.java b/org.eclipse.virgo.kernel.services/src/test/java/org/eclipse/virgo/kernel/services/concurrent/KernelThreadPoolExecutorTests.java
index 4fd23b17..0562f121 100644
--- a/org.eclipse.virgo.kernel.services/src/test/java/org/eclipse/virgo/kernel/services/concurrent/KernelThreadPoolExecutorTests.java
+++ b/org.eclipse.virgo.kernel.services/src/test/java/org/eclipse/virgo/kernel/services/concurrent/KernelThreadPoolExecutorTests.java
@@ -65,6 +65,7 @@ public class KernelThreadPoolExecutorTests extends AbstractExecutorTests {
});
latch.await();
+ Thread.sleep(100);
assertEquals(0, executor.getCompletedTaskCount());
}

Back to the top