We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33fef9f commit 58a36e9Copy full SHA for 58a36e9
test/test_cursor.py
@@ -1259,8 +1259,8 @@ def test_timeout_kills_cursor_asynchronously(self):
1259
1260
def assertCursorKilled():
1261
wait_until(
1262
- lambda: len(client._MongoClient__kill_cursors_queue) == 0,
1263
- "waited for all killCursor requests to complete",
+ lambda: len(listener.succeeded_events),
+ "find successful killCursors command",
1264
)
1265
1266
self.assertEqual(1, len(listener.started_events))
0 commit comments