diff options
Diffstat (limited to 'src/mongo/db/process_health/health_observer_test.cpp')
-rw-r--r-- | src/mongo/db/process_health/health_observer_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/process_health/health_observer_test.cpp b/src/mongo/db/process_health/health_observer_test.cpp index 6f995359a46..630f2f8d4a1 100644 --- a/src/mongo/db/process_health/health_observer_test.cpp +++ b/src/mongo/db/process_health/health_observer_test.cpp @@ -226,7 +226,7 @@ TEST_F(FaultManagerTest, TransitionsToActiveFaultAfterTimeout) { waitForTransitionIntoState(FaultState::kTransientFault); ASSERT_TRUE(manager().getFaultState() == FaultState::kTransientFault); advanceTime(manager().getConfig()->getActiveFaultDuration() + Milliseconds(1)); - assertSoon([this]() { return manager().getFaultState() == FaultState::kActiveFault; }); + waitForTransitionIntoState(FaultState::kActiveFault); } TEST_F(FaultManagerTest, DoesNotTransitionToActiveFaultIfResolved) { |