Skip to content

Commit

Permalink
Changed timeouts to fit better
Browse files Browse the repository at this point in the history
  • Loading branch information
JKutscha committed Jul 18, 2021
1 parent 7e9894f commit 54a5cd0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit 54a5cd0

Please sign in to comment.