summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_impl_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl_test.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl_test.cpp b/src/mongo/db/repl/replication_coordinator_impl_test.cpp
index 0674d4a88d4..351bf22dbe7 100644
--- a/src/mongo/db/repl/replication_coordinator_impl_test.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl_test.cpp
@@ -4206,7 +4206,7 @@ TEST_F(StableOpTimeTest, ClearOpTimeCandidatesPastCommonPointAfterRollback) {
// Make sure the stable optime candidate set has been cleared of all entries past the common
// point.
opTimeCandidates = repl->getStableOpTimeCandidates_forTest();
- auto stableOpTime = repl->getStableOpTime_forTest();
+ auto stableOpTime = repl->recalculateStableOpTime_forTest();
ASSERT(stableOpTime);
expectedOpTimeCandidates = {*stableOpTime};
ASSERT_OPTIME_SET_EQ(expectedOpTimeCandidates, opTimeCandidates);