Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-91031

Use default mongot protocolVersions in the mock tests

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      If tests use the helper mockPlanShardedSearchResponseOnConn() for PSS, they now use the default protocolVersion returned with getDefaultProtocolVersionForPlanShardedSearch() to mock their expected commands.

      However, many test files define their own PSS and their own protocolVersions. Currently the exact value of the protocol version doesn't matter, but it would be good for all current tests to be updated to use getDefaultProtocolVersionForPlanShardedSearch() in case the protocolVersion is updated in the future.

            Assignee:
            Unassigned Unassigned
            Reporter:
            erin.zhu@mongodb.com Erin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: