Skip to content

Commit

Permalink
Only the second call should raise an exception (#17149)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8c12788)
  • Loading branch information
lhellebr authored and web-flow committed Dec 12, 2024
1 parent 738e631 commit 8ce2a04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/foreman/destructive/test_ldap_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,7 @@ def test_login_failure_rhsso_user_if_internal_user_exist(
'password': settings.rhsso.rhsso_password,
}
with module_target_sat.ui_session(login=False) as rhsso_session:
with pytest.raises(NavigationTriesExceeded) as error:
rhsso_session.rhsso_login.login(login_details)
rhsso_session.rhsso_login.login(login_details)
with pytest.raises(NavigationTriesExceeded) as error:
rhsso_session.task.read_all()
assert error.typename == 'NavigationTriesExceeded'
Expand Down

0 comments on commit 8ce2a04

Please sign in to comment.