-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
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' ----------------------------------------------------------------------
- is caused by
-
PYTHON-1663 Connection pool should be LIFO
- Closed