Skip to content

Commit 624f4b5

Browse files
authored
Clarify how to match namespace for killCursors
1 parent 2bedff2 commit 624f4b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/atlas-data-lake-testing/tests/README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ Atlas Data Lake.
4646
a CommandStartedEvent and CommandSucceededEvent for the ``killCursors``
4747
command. Assert that the cursor ID and target namespace in the outgoing
4848
command match the values from the ``find`` command's CommandSucceededEvent.
49-
Assert that the ``killCursors`` CommandSucceededEvent indicates that the
50-
expected cursor was killed in the ``cursorsKilled`` field.
49+
When matching the namespace, note that the ``killCursors`` field will contain
50+
the collection name and the database may be inferred from either the ``$db``
51+
field or accessed via the CommandStartedEvent directly. Finally, assert that
52+
the ``killCursors`` CommandSucceededEvent indicates that the expected cursor
53+
was killed in the ``cursorsKilled`` field.
5154

5255
Note: this test assumes that drivers only issue a ``killCursors`` command
5356
internally when destroying a cursor that may still exist on the server. If

0 commit comments

Comments
 (0)