diff --git a/test/asynchronous/test_srv_polling.py b/test/asynchronous/test_srv_polling.py index d6f0f6a18..3d4aed1bc 100644 --- a/test/asynchronous/test_srv_polling.py +++ b/test/asynchronous/test_srv_polling.py @@ -225,7 +225,7 @@ class TestSrvPolling(AsyncPyMongoTestCase): await self.run_scenario(response_callback, False) - @flaky(reason="PYTHON-5500") + @flaky(reason="PYTHON-5500", max_runs=3) async def test_dns_failures_logging(self): from dns import exception diff --git a/test/test_srv_polling.py b/test/test_srv_polling.py index 09c900cf0..f5096bea0 100644 --- a/test/test_srv_polling.py +++ b/test/test_srv_polling.py @@ -225,7 +225,7 @@ class TestSrvPolling(PyMongoTestCase): self.run_scenario(response_callback, False) - @flaky(reason="PYTHON-5500") + @flaky(reason="PYTHON-5500", max_runs=3) def test_dns_failures_logging(self): from dns import exception