Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-82

Replace unreliable cursor-close tests with MockupDB

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.5
    • Affects Version/s: None
    • Component/s: Tests
    • None

      How Motor currently tests that it sends killCursors correctly is very hacky: it copies the closing cursor's id and nRetrieved into a new cursor and periodically attempts a getMore on the copied cursor until it gets a characteristic server message that shows the cursor is gone on the server.

      Instead, depend on MockupDB and use it to test directly that a killCursors message is received.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: