Add a small delay between re-runs

This commit is contained in:
Pradyun Gedam 2020-10-25 23:03:10 +05:30
parent 9faf431fbb
commit 66bb8a88c4
No known key found for this signature in database
GPG Key ID: FF99710C4332258E
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def pytest_collection_modifyitems(config, items):
if "CI" in os.environ:
# Mark network tests as flaky
if item.get_closest_marker('network') is not None:
item.add_marker(pytest.mark.flaky(reruns=3))
item.add_marker(pytest.mark.flaky(reruns=3, reruns_delay=2))
if (item.get_closest_marker('fails_on_new_resolver') and
config.getoption("--new-resolver") and