Fix killCursor helper in collection tests

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.0.0-rc1
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Isabella Siu (Inactive)
            Reporter:
            Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: