summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp b/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
index d2fccde344a..1a4c843523a 100644
--- a/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
@@ -1216,7 +1216,7 @@ TEST_F(ReplCoordHBV1Test, LastCommittedOpTimeOnlyUpdatesFromHeartbeatIfNotInStar
* Tests assert that stepdown via heartbeat completed, and the tests that send the new config via
* heartbeat assert that the new config was stored. Tests that send the new config with the
* replSetReconfig command don't check that it was stored; if the stepdown finished first then the
- * replSetReconfig was rejected with a NotMaster error.
+ * replSetReconfig was rejected with a NotWritablePrimary error.
*/
class HBStepdownAndReconfigTest : public ReplCoordHBV1Test {
protected:
@@ -1360,7 +1360,7 @@ Future<void> HBStepdownAndReconfigTest::startReconfigCommand() {
BSONObjBuilder result;
auto status = Status::OK();
try {
- // OK for processReplSetReconfig to return, throw NotMaster-like error, or succeed.
+ // OK for processReplSetReconfig to return, throw NotPrimary-like error, or succeed.
status = coord->processReplSetReconfig(opCtx.get(), args, &result);
} catch (const DBException&) {
status = exceptionToStatus();