Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2016-11-20 16:45:40 +0000
committerAndrey Loskutov2016-11-20 16:45:40 +0000
commita57c0fa2ef8dfbd2616d0f2a0fc0824f62b4b58e (patch)
treea8babbc36ef475707877e7a14a84f08d5255b44c
parent645cdec7ba080cfe74af25d5d22055a037945c3d (diff)
downloadeclipse.platform.ui-a57c0fa2ef8dfbd2616d0f2a0fc0824f62b4b58e.tar.gz
eclipse.platform.ui-a57c0fa2ef8dfbd2616d0f2a0fc0824f62b4b58e.tar.xz
eclipse.platform.ui-a57c0fa2ef8dfbd2616d0f2a0fc0824f62b4b58e.zip
Bug 435367 - ProgressContantsTest.testCommandProperty failedI20161120-2000
Don't join() immediately after schedule(), to avoid immediate return if the job wasn't started yet. Change-Id: I5a99799626902c2a283a3b1b344631121f03cfa9 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/progress/ProgressContantsTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/progress/ProgressContantsTest.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/progress/ProgressContantsTest.java
index a119e991737..23130b0fdfc 100644
--- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/progress/ProgressContantsTest.java
+++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/progress/ProgressContantsTest.java
@@ -63,11 +63,17 @@ public class ProgressContantsTest extends ProgressTestCase {
CommandHandler handler = new CommandHandler();
IHandlerActivation record = service.activateHandler(commandId, handler);
+ waitForJobs(100, 1000);
okJob.join();
-
processEvents();
ProgressInfoItem item = findProgressInfoItem(okJob);
+ if (item == null) {
+ waitForJobs(100, 1000);
+ okJob.join();
+ processEvents();
+ item = findProgressInfoItem(okJob);
+ }
assertNotNull(item);
item.executeTrigger();
assertTrue(handler.executed);

Back to the top