diff options
author | Andrey Loskutov | 2016-01-07 15:55:42 +0000 |
---|---|---|
committer | Andrey Loskutov | 2016-01-07 18:28:43 +0000 |
commit | 7a4ed471dd4c15283959ff383e1949c4ab2c92b4 (patch) | |
tree | 5c2c0bf2e2f9a11dd4e055e0faf8160c024e26d3 /org.eclipse.egit.ui.test/src | |
parent | c48fcea1d56d36b92ffdb95e6adcf7ee071bb137 (diff) | |
download | egit-7a4ed471dd4c15283959ff383e1949c4ab2c92b4.tar.gz egit-7a4ed471dd4c15283959ff383e1949c4ab2c92b4.tar.xz egit-7a4ed471dd4c15283959ff383e1949c4ab2c92b4.zip |
[test stability] trying to stabilize recently failed unstable tests
Change-Id: Ibf8298ebd16ec55a7320aeef5303b6006432f8ca
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.egit.ui.test/src')
-rw-r--r-- | org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/DisconnectConnectTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/DisconnectConnectTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/DisconnectConnectTest.java index 9d5f8ca8bb..cc2fd3e272 100644 --- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/DisconnectConnectTest.java +++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/DisconnectConnectTest.java @@ -49,7 +49,7 @@ public class DisconnectConnectTest extends LocalRepositoryTestCase { clickOnDisconnect(); ResourcesPlugin.getWorkspace().getRoot().refreshLocal( IResource.DEPTH_INFINITE, null); - waitInUI(); + TestUtil.waitForJobs(500, 5000); mapping = RepositoryMapping.getMapping(project); assertNull(mapping); SWTBotShell connectDialog = openConnectDialog(); @@ -61,8 +61,11 @@ public class DisconnectConnectTest extends LocalRepositoryTestCase { connectDialog.bot().button(IDialogConstants.FINISH_LABEL).click(); ResourcesPlugin.getWorkspace().getRoot().refreshLocal( IResource.DEPTH_INFINITE, null); - waitInUI(); + TestUtil.waitForJobs(500, 5000); mapping = RepositoryMapping.getMapping(project); + if (mapping == null) { + TestUtil.waitForJobs(500, 5000); + } assertNotNull(mapping); } |