diff options
author | Thomas Wolf | 2016-07-15 18:15:08 +0000 |
---|---|---|
committer | Thomas Wolf | 2016-07-15 18:40:02 +0000 |
commit | 54f14a6dc53c238ed59a572023470287811d08de (patch) | |
tree | b5863e4cb5df61d6e23f2979f780febdcec6b52d /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize | |
parent | 3d1af24fe5df4e5501bbe05c38c5ef9e6a9e2835 (diff) | |
download | egit-54f14a6dc53c238ed59a572023470287811d08de.tar.gz egit-54f14a6dc53c238ed59a572023470287811d08de.tar.xz egit-54f14a6dc53c238ed59a572023470287811d08de.zip |
Test stability: force display of result dialog of background jobs
Change-Id: Ia930bf0c9b391f6fd41869693166ed211ce1c2e1
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize')
-rw-r--r-- | org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewPushTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewPushTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewPushTest.java index a76dd1ad72..da640f3397 100644 --- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewPushTest.java +++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewPushTest.java @@ -17,6 +17,7 @@ import org.eclipse.egit.core.op.FetchOperation; import org.eclipse.egit.ui.JobFamilies; import org.eclipse.egit.ui.internal.UIText; import org.eclipse.egit.ui.test.JobJoiner; +import org.eclipse.egit.ui.test.TestUtil; import org.eclipse.jgit.lib.ConfigConstants; import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.ObjectId; @@ -70,7 +71,7 @@ public class SynchronizeViewPushTest extends AbstractSynchronizeViewTest { SWTBotToolbarButton pushButton = viewBot.toolbarButton(UIText.GitActionContributor_Push); JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.PUSH, 30, TimeUnit.SECONDS); pushButton.click(); - jobJoiner.join(); + TestUtil.openJobResultDialog(jobJoiner.join()); String destinationString = repositoryFile.getParentFile().getName() + " - " + "origin"; SWTBotShell resultDialog = bot.shell(NLS.bind(UIText.PushResultDialog_title, destinationString)); |