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

Replace unreliable cursor-close tests with MockupDB

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5
    • Component/s: Tests
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: