-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
Not Needed
-
Name of Failure:
test_to_list_tailable
Link to task:
Context of when and why the failure occurred:
Fails consistently on 3.6 for an unknown reason, which is an old enough server version for us to skip the test.
Stack trace:
[2024/08/08 14:46:37.338] FAILURE: AssertionError: 0 not greater than or equal to 1 () [2024/08/08 14:46:37.338] self = <test.test_cursor.TestCursor testMethod=test_to_list_tailable> [2024/08/08 14:46:37.338] @client_context.require_replica_set [2024/08/08 14:46:37.338] def test_to_list_tailable(self): [2024/08/08 14:46:37.338] oplog = self.client.local.oplog.rs [2024/08/08 14:46:37.338] last = oplog.find().sort("$natural", pymongo.DESCENDING).limit(-1).next() [2024/08/08 14:46:37.338] ts = last["ts"] [2024/08/08 14:46:37.338] [2024/08/08 14:46:37.338] c = oplog.find( [2024/08/08 14:46:37.338] {"ts": {"$gte": ts}}, cursor_type=pymongo.CursorType.TAILABLE_AWAIT, oplog_replay=True [2024/08/08 14:46:37.338] ) [2024/08/08 14:46:37.338] [2024/08/08 14:46:37.338] docs = c.to_list() [2024/08/08 14:46:37.338] [2024/08/08 14:46:37.338] > self.assertGreaterEqual(len(docs), 1) [2024/08/08 14:46:37.338] E AssertionError: 0 not greater than or equal to 1 [2024/08/08 14:46:37.338] test/test_cursor.py:1386: AssertionError
- duplicates
-
PYTHON-4610 test_to_list_tailable takes 20 seconds
- Closed