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

Test failure - test.asyncio_tests.test_asyncio_client.TestAsyncIOClient.test_reconnect_in_case_connection_closed_by_mongo

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

      This test attempts to use a non-existent method {{collections.deque.add to insert a socket back into the pool, resulting in the following failure:

      ======================================================================
      ERROR: test_reconnect_in_case_connection_closed_by_mongo (test.asyncio_tests.test_asyncio_client.TestAsyncIOClient)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/pmital/Developer/motor/test/asyncio_tests/__init__.py", line 48, in __call__
          result = self.orig_method()
        File "/Users/pmital/Developer/motor/test/asyncio_tests/__init__.py", line 226, in wrapped
          self.loop.run_until_complete(task)
        File "/Users/pmital/.pyenv/versions/3.7.0/lib/python3.7/asyncio/base_events.py", line 568, in run_until_complete
          return future.result()
        File "/Users/pmital/.pyenv/versions/3.7.0/lib/python3.7/asyncio/tasks.py", line 412, in wait_for
          return fut.result()
        File "/Users/pmital/Developer/motor/test/asyncio_tests/test_asyncio_client.py", line 106, in test_reconnect_in_case_connection_closed_by_mongo
          pool.sockets.add(socket)
      AttributeError: 'collections.deque' object has no attribute 'add'
      
      ----------------------------------------------------------------------
      
      

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: