Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2019-07-10 12:10:32 -0400
committerPatrick Tasse2019-07-10 15:46:08 -0400
commit88dfe60e2554b9bf1aafaca179f5d42112f22b1c (patch)
tree5c4761902f67048e0a32ce779d0d8c0d2191087b
parent2434d4b409cfbe87f1b1b4c9e89203688c0e7453 (diff)
downloadorg.eclipse.tracecompass-88dfe60e2554b9bf1aafaca179f5d42112f22b1c.tar.gz
org.eclipse.tracecompass-88dfe60e2554b9bf1aafaca179f5d42112f22b1c.tar.xz
org.eclipse.tracecompass-88dfe60e2554b9bf1aafaca179f5d42112f22b1c.zip
swtbot: Fix TimeGraphViewTest
The TmfTraceClosedSignal must be dispatched from the UI thread. Change-Id: Ice2c1f5305cd6074c8b8c0e95c792ca27baef68e Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com> Reviewed-on: https://git.eclipse.org/r/145871 Tested-by: CI Bot Reviewed-by: Simon Delisle <simon.delisle@ericsson.com> Tested-by: Simon Delisle <simon.delisle@ericsson.com>
-rw-r--r--tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/views/TimeGraphViewTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/views/TimeGraphViewTest.java b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/views/TimeGraphViewTest.java
index 940cb608c1..c9ac4cd1b6 100644
--- a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/views/TimeGraphViewTest.java
+++ b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/views/TimeGraphViewTest.java
@@ -315,7 +315,7 @@ public class TimeGraphViewTest {
legendBot.button(OK_BUTTON).click();
TmfTraceStub trace = fTrace;
assertNotNull(trace);
- TmfSignalManager.dispatchSignal(new TmfTraceClosedSignal(this, trace));
+ UIThreadRunnable.syncExec(() -> TmfSignalManager.dispatchSignal(new TmfTraceClosedSignal(this, trace)));
fBot.waitUntil(Conditions.shellCloses(legendShell));
fViewBot.close();
fBot.waitUntil(ConditionHelpers.viewIsClosed(fViewBot));

Back to the top