summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/transaction_coordinator_futures_util_test.cpp
diff options
context:
space:
mode:
authorPavi Vetriselvan <pavithra.vetriselvan@mongodb.com>2020-08-24 12:25:14 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-03 13:19:48 +0000
commit783e113bbb1bfa83630222de5b74fe95530692f0 (patch)
tree1938acb2542c93805331e166f2b638ea25b42c03 /src/mongo/db/s/transaction_coordinator_futures_util_test.cpp
parente9b6548c82815c7fb900ee7c00e497660a7d610c (diff)
downloadmongo-783e113bbb1bfa83630222de5b74fe95530692f0.tar.gz
SERVER-50408 Change NotMaster error name to NotWritablePrimary
Diffstat (limited to 'src/mongo/db/s/transaction_coordinator_futures_util_test.cpp')
-rw-r--r--src/mongo/db/s/transaction_coordinator_futures_util_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/transaction_coordinator_futures_util_test.cpp b/src/mongo/db/s/transaction_coordinator_futures_util_test.cpp
index e46ab94599f..4278c3367ff 100644
--- a/src/mongo/db/s/transaction_coordinator_futures_util_test.cpp
+++ b/src/mongo/db/s/transaction_coordinator_futures_util_test.cpp
@@ -250,7 +250,7 @@ TEST(TransactionCoordinatorFuturesUtilTest,
promises[0].setError(errorStatus1);
ASSERT(!resultFuture.isReady());
- Status errorStatus2{ErrorCodes::NotMaster, "dummy error"};
+ Status errorStatus2{ErrorCodes::NotWritablePrimary, "dummy error"};
promises[1].setError(errorStatus2);
ASSERT(!resultFuture.isReady());
@@ -642,11 +642,11 @@ TEST_F(AsyncWorkSchedulerTest, DestroyingSchedulerCapturedInFutureCallback) {
future.get();
}
-TEST_F(AsyncWorkSchedulerTest, NotifiesRemoteCommandTargeter_CmdResponseNotMasterError) {
+TEST_F(AsyncWorkSchedulerTest, NotifiesRemoteCommandTargeter_CmdResponseNotWritablePrimaryError) {
ASSERT_EQ(0UL, getShardTargeterMock(kShardIds[1])->getAndClearMarkedDownHosts().size());
scheduleAWSRemoteCommandWithResponse(kShardIds[1],
- BSON("ok" << 0 << "code" << ErrorCodes::NotMaster
+ BSON("ok" << 0 << "code" << ErrorCodes::NotWritablePrimary
<< "errmsg"
<< "dummy"));