Replace unreliable cursor-close tests with MockupDB

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 0.5
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: