Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2237

Use sort when verifying contents of outcome collections

    XMLWordPrintable

    Details

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

      Description

      Description of Drivers Ticket:

      Because the server doesn't guarantee that documents returned by a find call will be in inserted order, spec test runners should be updated to do one of the following when verifying the contents of a collection:

      1. Compare the find results against the data in the spec test with no ordering assumptions
      2. Use a sort of _id:1 when doing the find
        See DRIVERS-1196 for updated details.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shane.harvey Shane Harvey
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: