Skip to content

Commit

Permalink
[6.16.z] Only the second call should raise an exception (#17156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Dec 12, 2024
1 parent 8b4ded4 commit 9553ace
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 @@ -428,8 +428,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 9553ace

Please sign in to comment.