Skip to content

Commit

Permalink
tests: change parameters for pytest.mark.flaky to max_runs
Browse files Browse the repository at this point in the history
Old python automation was using pytest-rerunfailures plugin
providing pytest.mark.flaky with different parameters than flaky.
Now we got both in idmci and flaky takes precendence so we need
to use max_runs instead of reruns.
  • Loading branch information
jakub-vavra-cz committed Aug 19, 2024
1 parent fcda45b commit 757e26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/multihost/ad/test_adparameters_ported.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def set_ssh_key_ldap(session_multihost, user, pubkey, operation="replace"):
return cmd.returncode == 0


@pytest.mark.flaky(reruns=3, reruns_delay=30)
@pytest.mark.flaky(max_runs=3)
@pytest.mark.adparameters
@pytest.mark.usefixtures("change_client_hostname")
class TestADParamsPorted:
Expand Down

0 comments on commit 757e26a

Please sign in to comment.