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

Tests with ServiceContext use should be ServiceContextTests

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • Service Arch 2022-06-13, Service Arch 2022-06-27, Service Arch 2022-07-11

    Description

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

      Show all

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: