diff --git a/pyproject.toml b/pyproject.toml index 5a78067f6e..a43ca252d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -149,6 +149,7 @@ dependencies = [ "pytest>=6.0", "pytest-split", "pytest-dotenv", + "pytest-rerunfailures", "requests-mock", "pytest-cov", "pytest-describe", diff --git a/tests/test_telemetry.py b/tests/test_telemetry.py index 66bdc6bc4c..fd9991417d 100644 --- a/tests/test_telemetry.py +++ b/tests/test_telemetry.py @@ -100,6 +100,7 @@ def test_emit_usage_metrics_fails(mock_httpx_get, caplog): @pytest.mark.integration +@pytest.mark.flaky(reruns=2, reruns_delay=1) def test_emit_usage_metrics_succeeds(caplog): caplog.set_level(logging.DEBUG) sample_metrics = {