diff options
author | Thomas Wolf | 2016-09-29 06:25:28 +0000 |
---|---|---|
committer | Thomas Wolf | 2016-09-29 06:25:28 +0000 |
commit | 26327fb01f92d4f33413d86d38b19d5620c61c5b (patch) | |
tree | ffb14118629fd65ba9568dc7d73568ca3cd7c1d7 /org.eclipse.egit.ui.test | |
parent | 814a133ea306fc512c7f6efbb202e18685501867 (diff) | |
download | egit-26327fb01f92d4f33413d86d38b19d5620c61c5b.tar.gz egit-26327fb01f92d4f33413d86d38b19d5620c61c5b.tar.xz egit-26327fb01f92d4f33413d86d38b19d5620c61c5b.zip |
Test stability: wait for background jobs to finish
Git repository view tests that clone or add repositories should wait
for background jobs before trying to assert any view state.
Change-Id: I676f3c526d927cc556fed6ba54d04c2f164209b9
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/GitRepositoriesViewRepoHandlingTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java index f4fead8528..90e8a54545 100644 --- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java +++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java @@ -21,6 +21,7 @@ import java.io.File; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; import org.eclipse.egit.ui.Activator; +import org.eclipse.egit.ui.JobFamilies; import org.eclipse.egit.ui.internal.UIText; import org.eclipse.egit.ui.test.ContextMenuHelper; import org.eclipse.egit.ui.test.TestUtil; @@ -290,6 +291,7 @@ public class GitRepositoriesViewRepoHandlingTest extends SWTBotTreeItem item = shell.bot().tree().getAllItems()[0]; item.check(); shell.bot().button(IDialogConstants.FINISH_LABEL).click(); + TestUtil.joinJobs(org.eclipse.egit.core.JobFamilies.AUTO_SHARE); refreshAndWait(); assertHasRepo(repositoryFile); } @@ -319,6 +321,7 @@ public class GitRepositoriesViewRepoHandlingTest extends SWTBotText pathText = shell.bot().text(0); pathText.setText(pathText.getText() + "Cloned"); shell.bot().button(IDialogConstants.FINISH_LABEL).click(); + TestUtil.joinJobs(JobFamilies.CLONE); refreshAndWait(); assertHasClonedRepo(); } |