summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/op_msg_integration_test.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2023-02-15 18:22:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-15 22:07:15 +0000
commitb87bda3736d7336e5afa53ada007ec670b1d5bf0 (patch)
tree612a8cc8437dd6eaa9f963fab7ea909d7c150226 /src/mongo/rpc/op_msg_integration_test.cpp
parent006518628b59623ceb9e0f6503f4bf6a744f120f (diff)
downloadmongo-b87bda3736d7336e5afa53ada007ec670b1d5bf0.tar.gz
SERVER-73375 Change DbClient fire-and-forget command functions to use NamespaceString object
Diffstat (limited to 'src/mongo/rpc/op_msg_integration_test.cpp')
-rw-r--r--src/mongo/rpc/op_msg_integration_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/rpc/op_msg_integration_test.cpp b/src/mongo/rpc/op_msg_integration_test.cpp
index e75b81e1647..30946582a76 100644
--- a/src/mongo/rpc/op_msg_integration_test.cpp
+++ b/src/mongo/rpc/op_msg_integration_test.cpp
@@ -338,7 +338,7 @@ void exhaustGetMoreTest(bool enableChecksum) {
// Insert a few documents.
for (int i = 0; i < 5; i++) {
- conn->insert(nss.toString(), BSON("_id" << i));
+ conn->insert(nss, BSON("_id" << i));
}
// Issue a find request to open a cursor but return 0 documents. Specify a sort in order to
@@ -425,7 +425,7 @@ TEST(OpMsg, FindIgnoresExhaust) {
// Insert a few documents.
for (int i = 0; i < 5; i++) {
- conn->insert(nss.toString(), BSON("_id" << i));
+ conn->insert(nss, BSON("_id" << i));
}
// Issue a find request with exhaust flag. Returns 0 documents.
@@ -457,7 +457,7 @@ TEST(OpMsg, ServerDoesNotSetMoreToComeOnErrorInGetMore) {
// Insert a few documents.
for (int i = 0; i < 5; i++) {
- conn->insert(nss.toString(), BSON("_id" << i));
+ conn->insert(nss, BSON("_id" << i));
}
// Issue a find request to open a cursor but return 0 documents.
@@ -504,7 +504,7 @@ TEST(OpMsg, MongosIgnoresExhaustForGetMore) {
// Insert a few documents.
for (int i = 0; i < 5; i++) {
- conn->insert(nss.toString(), BSON("_id" << i));
+ conn->insert(nss, BSON("_id" << i));
}
// Issue a find request to open a cursor but return 0 documents. Specify a sort in order to
@@ -556,7 +556,7 @@ TEST(OpMsg, ExhaustWorksForAggCursor) {
// Insert 5 documents so that a cursor using a batchSize of 2 requires three batches to get all
// the results.
for (int i = 0; i < 5; i++) {
- conn->insert(nss.toString(), BSON("_id" << i));
+ conn->insert(nss, BSON("_id" << i));
}
// Issue an agg request to open a cursor but return 0 documents. Specify a sort in order to
@@ -1234,7 +1234,7 @@ TEST(OpMsg, ExhaustWithDBClientCursorBehavesCorrectly) {
LOGV2(22634, "Inserting {nDocs} documents.", "nDocs"_attr = nDocs);
for (int i = 0; i < nDocs; i++) {
auto doc = BSON("_id" << i);
- conn->insert(nss.toString(), doc);
+ conn->insert(nss, doc);
}
ASSERT_EQ(conn->count(nss), size_t(nDocs));