Skip to content

Commit

Permalink
PYTHON-4010 Fix test_timeout_kills_cursor_asynchronously (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed Oct 25, 2023
1 parent 33fef9f commit 58a36e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1259,8 +1259,8 @@ def test_timeout_kills_cursor_asynchronously(self):

def assertCursorKilled():
wait_until(
lambda: len(client._MongoClient__kill_cursors_queue) == 0,
"waited for all killCursor requests to complete",
lambda: len(listener.succeeded_events),
"find successful killCursors command",
)

self.assertEqual(1, len(listener.started_events))
Expand Down

0 comments on commit 58a36e9

Please sign in to comment.