Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvladt2011-01-27 21:01:38 +0000
committervladt2011-01-27 21:02:34 +0000
commit14f8562fe514ea4dde8a8a1c80868abedf2df3bc (patch)
tree2507f76719a5b0959246c9314c02f1df6df194b7 /org.eclipse.m2e.tests.common
parent263ff23310e5e34df300568530444264def13b69 (diff)
downloadm2e-core-14f8562fe514ea4dde8a8a1c80868abedf2df3bc.tar.gz
m2e-core-14f8562fe514ea4dde8a8a1c80868abedf2df3bc.tar.xz
m2e-core-14f8562fe514ea4dde8a8a1c80868abedf2df3bc.zip
335595 - The download sources/javadocs task ignores cancelation
Diffstat (limited to 'org.eclipse.m2e.tests.common')
-rw-r--r--org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java
index 57fe3f6e..a115ba7a 100644
--- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java
+++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java
@@ -76,8 +76,9 @@ public class JobHelpers {
// Now we flush all background processing queues
boolean processed = flushProcessingQueues(jobManager, monitor);
- for (int i = 0; i < 10 && processed; i++) {
+ for(int i = 0; i < 10 && processed; i++ ) {
processed = flushProcessingQueues(jobManager, monitor);
+ Thread.sleep(10);
}
Assert.assertFalse("Could not flush background processing queues: " + getProcessingQueues(jobManager), processed);

Back to the top