-
Type:
Build Failure
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Name of Failure:
test.asynchronous.test_srv_polling.TestSrvPolling.test_recover_from_initially_empty_seedlist, test.asynchronous.test_srv_polling.TestSrvPolling.test_recover_from_initially_erroring_seedlist
Link to task:
Context of when and why the failure occurred:
Stack trace:
[2025/04/14 09:00:09.225] FAILURE: AssertionError: Didn't ever see expected nodelist () [2025/04/14 09:00:09.225] self = <test.asynchronous.test_srv_polling.TestSrvPolling testMethod=test_recover_from_initially_empty_seedlist> [2025/04/14 09:00:09.225] async def test_recover_from_initially_empty_seedlist(self): [2025/04/14 09:00:09.225] def empty_seedlist(): [2025/04/14 09:00:09.225] return [] [2025/04/14 09:00:09.225] [2025/04/14 09:00:09.225] > await self._test_recover_from_initial(empty_seedlist) [2025/04/14 09:00:09.225] test\asynchronous\test_srv_polling.py:258: [2025/04/14 09:00:09.225] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2025/04/14 09:00:09.225] test\asynchronous\test_srv_polling.py:252: in _test_recover_from_initial [2025/04/14 09:00:09.225] await self.assert_nodelist_change(response_final, client) [2025/04/14 09:00:09.225] test\asynchronous\test_srv_polling.py:128: in assert_nodelist_change [2025/04/14 09:00:09.225] await async_wait_until(predicate, "see expected nodelist", timeout=timeout) [2025/04/14 09:00:09.225] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2025/04/14 09:00:09.225] predicate = <function TestSrvPolling.assert_nodelist_change.<locals>.predicate at 0x00000198816D5440> [2025/04/14 09:00:09.225] success_description = 'see expected nodelist', timeout = 10.0 [2025/04/14 09:00:09.225] async def async_wait_until(predicate, success_description, timeout=10): [2025/04/14 09:00:09.225] """Wait up to 10 seconds (by default) for predicate to be true. [2025/04/14 09:00:09.225] [2025/04/14 09:00:09.225] E.g.: [2025/04/14 09:00:09.225] [2025/04/14 09:00:09.225] wait_until(lambda: client.primary == ('a', 1), [2025/04/14 09:00:09.225] 'connect to the primary') [2025/04/14 09:00:09.225] [2025/04/14 09:00:09.225] If the lambda-expression isn't true after 10 seconds, we raise [2025/04/14 09:00:09.225] AssertionError("Didn't ever connect to the primary"). [2025/04/14 09:00:09.225] [2025/04/14 09:00:09.225] Returns the predicate's first true value. [2025/04/14 09:00:09.225] """ [2025/04/14 09:00:09.225] start = time.time() [2025/04/14 09:00:09.225] interval = min(float(timeout) / 100, 0.1) [2025/04/14 09:00:09.225] while True: [2025/04/14 09:00:09.225] if iscoroutinefunction(predicate): [2025/04/14 09:00:09.225] retval = await predicate() [2025/04/14 09:00:09.225] else: [2025/04/14 09:00:09.225] retval = predicate() [2025/04/14 09:00:09.225] if retval: [2025/04/14 09:00:09.225] return retval [2025/04/14 09:00:09.225] [2025/04/14 09:00:09.225] if time.time() - start > timeout: [2025/04/14 09:00:09.225] > raise AssertionError("Didn't ever %s" % success_description) [2025/04/14 09:00:09.225] E AssertionError: Didn't ever see expected nodelist [2025/04/14 09:00:09.225] test\asynchronous\utils.py:79: AssertionError
- related to
-
PYTHON-2228 Test failure - test_srv_polling.TestSrvPolling.test_recover_from_initially_empty_seedlist
-
- Closed
-