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

Tests with ServiceContext use should be ServiceContextTests

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Service Arch 2022-06-13, Service Arch 2022-06-27, Service Arch 2022-07-11

      We have a small handful of tests that make use of ServiceContext pointers but are not derived from ServiceContextTest:

      src/mongo/client/server_is_master_monitor_test.cpp
      src/mongo/client/server_ping_monitor_test.cpp
      src/mongo/db/operation_context_test.cpp
      src/mongo/util/future_util_test.cpp
      

      We should convert them to be ServiceContextTest and become DRYer.

            Assignee:
            alex.li@mongodb.com Alex Li
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: