Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-817

Fix killCursor helper in collection tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-rc1
    • Affects Version/s: None
    • Component/s: Testing
    • 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@mongodb.com Isabella Siu (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: