Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-442

Test failures because ASYNC_TEST_TIMEOUT environment variable is not converted to an int/float

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: None
    • Component/s: Tests
    • None

       [2019/10/28 14:56:53.842] ERROR [2.051s]: test_async_try_next_updates_resume_token (asyncio_tests.test_asyncio_change_stream.TestAsyncIOChangeStream)
       [2019/10/28 14:56:53.842] ----------------------------------------------------------------------
       [2019/10/28 14:56:53.842] Traceback (most recent call last):
       [2019/10/28 14:56:53.842]   File "/data/mci/6fef154d41e8beeb34fecd211fa8a07b/src/test/asyncio_tests/__init__.py", line 48, in __call__
       [2019/10/28 14:56:53.842]     result = self.orig_method()
       [2019/10/28 14:56:53.842]   File "/data/mci/6fef154d41e8beeb34fecd211fa8a07b/src/test/test_environment.py", line 283, in wrap
       [2019/10/28 14:56:53.842]     return f(*args, **kwargs)
       [2019/10/28 14:56:53.842]   File "/data/mci/6fef154d41e8beeb34fecd211fa8a07b/src/test/asyncio_tests/__init__.py", line 226, in wrapped
       [2019/10/28 14:56:53.842]     self.loop.run_until_complete(task)
       [2019/10/28 14:56:53.842]   File "/opt/python/3.7/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
       [2019/10/28 14:56:53.842]     return future.result()
       [2019/10/28 14:56:53.842]   File "/opt/python/3.7/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
       [2019/10/28 14:56:53.842]     return fut.result()
       [2019/10/28 14:56:53.842]   File "/data/mci/6fef154d41e8beeb34fecd211fa8a07b/src/test/asyncio_tests/test_asyncio_change_stream.py", line 122, in test_async_try_next_updates_resume_token
       [2019/10/28 14:56:53.842]     timeout=os.environ.get('ASYNC_TEST_TIMEOUT', 5))
       [2019/10/28 14:56:53.842]   File "/data/mci/6fef154d41e8beeb34fecd211fa8a07b/src/test/py35utils.py", line 35, in wait_until
       [2019/10/28 14:56:53.842]     if time.time() - start > timeout:
       [2019/10/28 14:56:53.842] TypeError: '>' not supported between instances of 'float' and 'str'
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: