Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Valenta2005-03-31 14:54:10 +0000
committerMichael Valenta2005-03-31 14:54:10 +0000
commitc4ee307f11de88f9816928b1771e47d10cfac997 (patch)
tree8eb0f76d4e6dba6a7b3bcbadcc8a45655592dca1 /tests
parent640a8c57384228a33b81129cdcb923a7e89902f4 (diff)
downloadeclipse.platform.team-c4ee307f11de88f9816928b1771e47d10cfac997.tar.gz
eclipse.platform.team-c4ee307f11de88f9816928b1771e47d10cfac997.tar.xz
eclipse.platform.team-c4ee307f11de88f9816928b1771e47d10cfac997.zip
Attempt to fix intermitant test failureI20050331
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java
index 3dc066b2a..5bd2b8ca4 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java
@@ -34,6 +34,7 @@ import org.eclipse.team.internal.ccvs.core.util.SyncFileChangeListener;
import org.eclipse.team.internal.ccvs.ui.operations.*;
import org.eclipse.team.internal.core.subscribers.SubscriberSyncInfoCollector;
import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.internal.decorators.DecoratorManager;
public class EclipseTest extends ResourceTest {
@@ -870,7 +871,17 @@ public class EclipseTest extends ResourceTest {
public static void waitForIgnoreFileHandling() {
waitForJobCompletion(SyncFileChangeListener.getDeferredHandler().getEventHandlerJob());
+ waitForDecorator();
}
+
+ private static void waitForDecorator() {
+ // Wait for the decorator job
+ Job[] decorators = Platform.getJobManager().find(DecoratorManager.FAMILY_DECORATE);
+ for (int i = 0; i < decorators.length; i++) {
+ Job job = decorators[i];
+ waitForJobCompletion(job);
+ }
+ }
public static void waitForSubscriberInputHandling(SubscriberSyncInfoCollector input) {
input.waitForCollector(new IProgressMonitor() {

Back to the top