Test Failure (Windows) - test.asynchronous.test_srv_polling.TestSrvPolling

XMLWordPrintableJSON

    • 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:

      https://spruce.mongodb.com/task/mongo_python_driver_test_win64_test_v5.0_python3.13_async_noauth_nossl_standalone_patch_3723edc199a45e9dd0012ce449671eddedae40ee_67fd2d0bb41c2300078dd21d_25_04_14_15_43_19/tests?execution=0&sortBy=STATUS&sortDir=ASC

      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
      

            Assignee:
            Steve Silvester
            Reporter:
            Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: