Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2018-02-15 05:01:21 -0500
committerSarika Sinha2018-02-15 05:01:21 -0500
commit9e580523e2e39e00b1ed554274af916a9f15605f (patch)
treec8c0b740fc3641b8a4204d6fc6fd1bc11f2c2e20
parent2954286ae2561699bf7acfbaaa9e3473400c312b (diff)
downloadeclipse.platform.debug-9e580523e2e39e00b1ed554274af916a9f15605f.tar.gz
eclipse.platform.debug-9e580523e2e39e00b1ed554274af916a9f15605f.tar.xz
eclipse.platform.debug-9e580523e2e39e00b1ed554274af916a9f15605f.zip
Bug 435731 - [Tests] Listener not finished: Viewer Update ListenerI20180217-1500I20180216-2000I20180216-0415I20180215-2000
-rw-r--r--org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/StateTests.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/StateTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/StateTests.java
index 97d02fc3a..9e5437ee4 100644
--- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/StateTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/StateTests.java
@@ -858,6 +858,7 @@ new TreePath[] { model.findElement("5"), model.findElement("5.1"), model.findEle
// Set the input into the view and update the view.
fViewer.setInput(model.getRootElement());
+ TestUtil.waitForJobs(getName(), 300, 5000);
waitWhile(t -> !fListener.isFinished(CONTENT_SEQUENCE_COMPLETE), createListenerErrorMessage());
expandAlternateElements(fListener, model, false);
@@ -876,6 +877,7 @@ new TreePath[] { model.findElement("5"), model.findElement("5.1"), model.findEle
fListener.addStateUpdates(getInternalViewer(), originalState, IModelDelta.EXPAND | IModelDelta.SELECT | IModelDelta.REVEAL);
fViewer.setInput(null);
+ TestUtil.waitForJobs(getName(), 300, 5000);
waitWhile(t -> !fListener.isFinished(STATE_SAVE_COMPLETE | STATE_UPDATES), createListenerErrorMessage());
// Set the viewer input back to the model. When view updates are complete
@@ -883,6 +885,7 @@ new TreePath[] { model.findElement("5"), model.findElement("5.1"), model.findEle
// Note: disable redundant updates because the reveal delta triggers one.
fListener.reset();
fViewer.setInput(model.getRootElement());
+ TestUtil.waitForJobs(getName(), 300, 5000);
waitWhile(t -> !fListener.isFinished(CONTENT_SEQUENCE_COMPLETE), createListenerErrorMessage());
// Validate data (only select visible elements).

Back to the top