From 54a5cd0dbd783785f7e16460723d6c612bf7da5b Mon Sep 17 00:00:00 2001 From: Jonas <50097340+JKutscha@users.noreply.github.com> Date: Sun, 18 Jul 2021 09:49:35 +0200 Subject: [PATCH] Changed timeouts to fit better --- .../pitest/pitclipse/ui/tests/PitclipsePitSummaryViewTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipsePitSummaryViewTest.java b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipsePitSummaryViewTest.java index 46dd75d4..f1ef1bc3 100644 --- a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipsePitSummaryViewTest.java +++ b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipsePitSummaryViewTest.java @@ -43,7 +43,7 @@ public void navigateWithButtons() throws CoreException { try { // set timeout to small time, because offline page loads should be quick and // some pages are expected to not change and need timeout - SWTBotPreferences.TIMEOUT = 2; + SWTBotPreferences.TIMEOUT = 50; // should not change page String lastUrl = summaryView.getCurrentBrowserUrl(); assertThat(summaryView.clickHome(), equalTo(lastUrl)); @@ -53,7 +53,6 @@ public void navigateWithButtons() throws CoreException { runPackageTest(FOO_BAR_PACKAGE, TEST_PROJECT); coverageReportGenerated(2, 80, 0); - SWTBotPreferences.TIMEOUT = 2; assertThat(summaryView.getCurrentBrowserUrl(), endsWith(INDEX)); assertThat(summaryView.setLink("./"+ FOO_BAR_PACKAGE_RESULT+"/"+FOO_CLASS_RESULT), endsWith(FOO_CLASS_RESULT)); assertThat(summaryView.clickBack(), endsWith(INDEX));