summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog/sharding_catalog_client_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/catalog/sharding_catalog_client_test.cpp')
-rw-r--r--src/mongo/s/catalog/sharding_catalog_client_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/catalog/sharding_catalog_client_test.cpp b/src/mongo/s/catalog/sharding_catalog_client_test.cpp
index eaffa9445d9..54528489f36 100644
--- a/src/mongo/s/catalog/sharding_catalog_client_test.cpp
+++ b/src/mongo/s/catalog/sharding_catalog_client_test.cpp
@@ -246,7 +246,7 @@ TEST_F(ShardingCatalogClientTest, GetDatabaseStaleSecondaryRetryNoPrimary) {
ASSERT_EQUALS(testHost, request.target);
// Make it so when it attempts to retarget and retry it will get a NotWritablePrimary error.
configTargeter()->setFindHostReturnValue(
- Status(ErrorCodes::NotWritablePrimary, "no config master"));
+ Status(ErrorCodes::NotWritablePrimary, "no config primary"));
return vector<BSONObj>{};
});
@@ -695,7 +695,7 @@ TEST_F(ShardingCatalogClientTest, RunUserManagementWriteCommandNotWritablePrimar
onCommand([](const RemoteCommandRequest& request) {
BSONObjBuilder responseBuilder;
CommandHelpers::appendCommandStatusNoThrow(
- responseBuilder, Status(ErrorCodes::NotWritablePrimary, "not master"));
+ responseBuilder, Status(ErrorCodes::NotWritablePrimary, "not primary"));
return responseBuilder.obj();
});
}
@@ -726,7 +726,7 @@ TEST_F(ShardingCatalogClientTest, RunUserManagementWriteCommandNotWritablePrimar
BSONObjBuilder responseBuilder;
CommandHelpers::appendCommandStatusNoThrow(
- responseBuilder, Status(ErrorCodes::NotWritablePrimary, "not master"));
+ responseBuilder, Status(ErrorCodes::NotWritablePrimary, "not primary"));
// Ensure that when the catalog manager tries to retarget after getting the
// NotWritablePrimary response, it will get back a new target.