Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Nittka2020-03-16 14:27:01 +0000
committerThomas Wolf2020-03-17 08:01:16 +0000
commitb4080f63a96dd1c1e7b78acc2ee846bf2d56efbe (patch)
treeaafd7f0189dd1b82bf23353f9a52e09ac70e479d /org.eclipse.egit.ui.test/src
parentcfc6cf84619152708882866b6e37aa4089e89920 (diff)
downloadegit-b4080f63a96dd1c1e7b78acc2ee846bf2d56efbe.tar.gz
egit-b4080f63a96dd1c1e7b78acc2ee846bf2d56efbe.tar.xz
egit-b4080f63a96dd1c1e7b78acc2ee846bf2d56efbe.zip
history view test stability
Wait for jobs in assertNoCommit in analogy to assertCommitsAfterBase. The test failed in multiple builds with changes unrelated to this test - always in assertNoCommit. Change-Id: Ia35779075d80988dc1c978d0b263de9da5ad7e13 Signed-off-by: Alexander Nittka <alex@nittka.de>
Diffstat (limited to 'org.eclipse.egit.ui.test/src')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
index bc0d01b395..0e398fffbb 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
@@ -596,6 +596,7 @@ public class HistoryViewTest extends GitRepositoriesViewTestBase {
}
private void assertNoCommit(SWTBotTable table) {
+ TestUtil.waitForJobs(50, 5000);
bot.waitUntil(new DefaultCondition() {
@Override
@@ -607,8 +608,8 @@ public class HistoryViewTest extends GitRepositoriesViewTestBase {
public String getFailureMessage() {
return "CommitGraphTable did not become empty";
}
-
});
+
assertThat("Expected no commit", getCommitMsgsFromUi(table),
emptyArray());
}

Back to the top