summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/curop_test.cpp')
-rw-r--r--src/mongo/db/curop_test.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/curop_test.cpp b/src/mongo/db/curop_test.cpp
index fc9e05e37c4..47c2289baae 100644
--- a/src/mongo/db/curop_test.cpp
+++ b/src/mongo/db/curop_test.cpp
@@ -206,8 +206,11 @@ TEST(CurOpTest, OptionalAdditiveMetricsNotDisplayedIfUninitialized) {
BSONObj command = BSON("a" << 3);
// Set dummy 'ns' and 'command'.
- curop->setGenericOpRequestDetails(
- opCtx.get(), NamespaceString("myDb.coll"), nullptr, command, NetworkOp::dbQuery);
+ curop->setGenericOpRequestDetails(opCtx.get(),
+ NamespaceString::createNamespaceString_forTest("myDb.coll"),
+ nullptr,
+ command,
+ NetworkOp::dbQuery);
BSONObjBuilder builder;
od.append(opCtx.get(), ls, {}, builder);