-
Type:
Build Failure
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: greenerbuild
-
None
-
None
-
Python Drivers
-
Not Needed
-
-
None
-
None
-
None
-
None
-
None
-
None
Name of Failure:
test.asynchronous.test_srv_polling.TestSrvPolling.test_dns_failures_logging
Link to task:
Context of when and why the failure occurred:
Seems to be a flaky test on Windows.
Stack trace:
[2025/08/18 06:44:41.758] FAILURE: AssertionError: 2 != 1 () [2025/08/18 06:44:41.758] self = <test.asynchronous.test_srv_polling.TestSrvPolling testMethod=test_dns_failures_logging> [2025/08/18 06:44:41.758] async def test_dns_failures_logging(self): [2025/08/18 06:44:41.758] from dns import exception [2025/08/18 06:44:41.758] [2025/08/18 06:44:41.758] with self.assertLogs("pymongo.topology", level="DEBUG") as cm: [2025/08/18 06:44:41.758] [2025/08/18 06:44:41.758] def response_callback(*args): [2025/08/18 06:44:41.758] raise exception.Timeout("DNS Failure!") [2025/08/18 06:44:41.758] [2025/08/18 06:44:41.758] await self.run_scenario(response_callback, False) [2025/08/18 06:44:41.758] [2025/08/18 06:44:41.758] srv_failure_logs = [r for r in cm.records if "SRV monitor check failed" in r.getMessage()] [2025/08/18 06:44:41.758] > self.assertEqual(len(srv_failure_logs), 1) [2025/08/18 06:44:41.758] E AssertionError: 2 != 1 [2025/08/18 06:44:41.758] test\asynchronous\test_srv_polling.py:239: AssertionError