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

Remove kMock1, kMock2 FaultFacetType from enum

    • Sharding NYC
    • 3

      We can remove these test only types in favor of a class that imitates one of the types used in production.

      In tests that need a mock health observer we can register with the following:
      registerMockHealthObserver(FaultFacetType::kDns, []

      { return 0; }

      );

      Under the hood it will register a mock health observer instance that records the intended type.

            Assignee:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            lamont.nelson@mongodb.com Lamont Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: