From 4b4d74971c58716137e09bc235b9f79f56615759 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 17 Sep 2025 06:38:24 -0500 Subject: [PATCH] PYTHON-5500 Account for extra flakiness in test_dns_failures_logging (#2533) --- test/asynchronous/test_srv_polling.py | 2 +- test/test_srv_polling.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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