Skip to content

Commit

Permalink
Issue #682: don't emit a fail when a login iteration fails
Browse files Browse the repository at this point in the history
As otherwise the whole subtest fails, and an exception is thrown.
  • Loading branch information
bschmalhofer committed Apr 27, 2021
1 parent 6bec37c commit bee7525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kernel/System/UnitTest/Selenium.pm
Original file line number Diff line number Diff line change
Expand Up @@ -487,13 +487,13 @@ sub Login {
if ($@) {

# login was not sucessful
fail("Login attempt $Try/$MaxTries failed");
note("Login attempt $Try/$MaxTries failed");

next TRY;
}

# no error happend
pass("Login attempt $Try/$MaxTries succeeded");
note("Login attempt $Try/$MaxTries succeeded");
$LoginSuccessful = 1;

last TRY;
Expand Down

0 comments on commit bee7525

Please sign in to comment.