summaryrefslogtreecommitdiff
path: root/src/mongo/s/transaction_router_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/transaction_router_test.cpp')
-rw-r--r--src/mongo/s/transaction_router_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/transaction_router_test.cpp b/src/mongo/s/transaction_router_test.cpp
index e92b32860e1..7c4c0c20cda 100644
--- a/src/mongo/s/transaction_router_test.cpp
+++ b/src/mongo/s/transaction_router_test.cpp
@@ -1523,7 +1523,7 @@ TEST_F(TransactionRouterTestWithDefaultSession,
ASSERT_EQ(expectedParticipants.size(), participantElements.size());
for (const auto& element : participantElements) {
- auto shardId = element["shardId"].valuestr();
+ auto shardId = element["shardId"].str();
ASSERT_EQ(1ull, expectedParticipants.count(shardId));
expectedParticipants.erase(shardId);
}
@@ -1575,7 +1575,7 @@ TEST_F(TransactionRouterTestWithDefaultSession,
ASSERT_EQ(expectedParticipants.size(), participantElements.size());
for (const auto& element : participantElements) {
- auto shardId = element["shardId"].valuestr();
+ auto shardId = element["shardId"].str();
ASSERT_EQ(1ull, expectedParticipants.count(shardId));
expectedParticipants.erase(shardId);
}
@@ -1741,7 +1741,7 @@ TEST_F(TransactionRouterTestWithDefaultSession,
ASSERT_EQ(expectedParticipants.size(), participantElements.size());
for (const auto& element : participantElements) {
- auto shardId = element["shardId"].valuestr();
+ auto shardId = element["shardId"].str();
ASSERT_EQ(1ull, expectedParticipants.count(shardId));
expectedParticipants.erase(shardId);
}
@@ -1803,7 +1803,7 @@ TEST_F(TransactionRouterTestWithDefaultSession,
ASSERT_EQ(expectedParticipants.size(), participantElements.size());
for (const auto& element : participantElements) {
- auto shardId = element["shardId"].valuestr();
+ auto shardId = element["shardId"].str();
ASSERT_EQ(1ull, expectedParticipants.count(shardId));
expectedParticipants.erase(shardId);
}