The killCursor helper in collection_internal_test.go calls driver.KillCursors, which performs server selection. Change the function to directly call the killCursors command to avoid selecting the wrong server.
EDIT: the test can't currently be moved to a lower level. Putting it in x/mongo/driver/topology prevents us from accessing the batch cursor's server field and putting it in x/monog/driver causes an import cycle with testutil. Current fix is to skip the test until this ticket is resolved.
- related to
-
GODRIVER-819 driver.KillCursors broken
- Closed