Details
Description
Most of the time test passes because the periodic waitForMajority has not get a chance to consume the queued opTimes before the shutdown sets the promises. However, in some cases, it could be calling the waitForWC, which is a mocked function in the test setup. Because the mock function always returns Status::OK, it will never get the InterruptedByShutdown status code.