Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2016-05-04 18:27:24 +0000
committerThomas Wolf2016-05-04 18:27:24 +0000
commit4c3873610278ae979de39e1daa856702d329a280 (patch)
tree2b066050a47fd5656f5ed6812804b6a8264c4bf6 /org.eclipse.egit.ui.test
parentb7eb3ebb16528fdde6ad55da23dc0fd63aacf412 (diff)
downloadegit-4c3873610278ae979de39e1daa856702d329a280.tar.gz
egit-4c3873610278ae979de39e1daa856702d329a280.tar.xz
egit-4c3873610278ae979de39e1daa856702d329a280.zip
Test stability: wait for repositories view refresh after config change
The repositories view updates itself on a config change event. The test must wait until that refresh is over, otherwise tree nodes may disappear while we're waiting for them to be expanded, resulting in "org.eclipse.swt.SWTException: Widget is disposed". Change-Id: I0a72897bcb919b0da2bc81e124cc8c0c2cf9a171 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.egit.ui.test')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java
index 7407820880..b217f72392 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java
@@ -449,6 +449,7 @@ public class GitRepositoriesViewBranchHandlingTest extends
if (!changed.get())
fail("We should have received a config change event");
+ refreshAndWait(); // Repo view updates itself after config change.
rebase = repo.getConfig().getBoolean(
ConfigConstants.CONFIG_BRANCH_SECTION, "configTest",
ConfigConstants.CONFIG_KEY_REBASE, false);

Back to the top