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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/curop_test.cpp b/src/mongo/db/curop_test.cpp
index abda927f3c8..84d3db43edf 100644
--- a/src/mongo/db/curop_test.cpp
+++ b/src/mongo/db/curop_test.cpp
@@ -201,7 +201,7 @@ TEST(CurOpTest, OptionalAdditiveMetricsNotDisplayedIfUninitialized) {
opCtx.get(), NamespaceString("myDb.coll"), nullptr, command, NetworkOp::dbQuery);
BSONObjBuilder builder;
- od.append(*curop, ls, {}, builder);
+ od.append(opCtx.get(), ls, {}, builder);
auto bs = builder.done();
// Append should always include these basic fields.
@@ -213,7 +213,7 @@ TEST(CurOpTest, OptionalAdditiveMetricsNotDisplayedIfUninitialized) {
ASSERT_EQ(static_cast<size_t>(bs.nFields()), basicFields.size());
// 'reportString' should only contain basic fields.
- std::string reportString = od.report(serviceContext.getClient(), *curop, nullptr, {});
+ std::string reportString = od.report(opCtx.get(), nullptr);
std::string expectedReportString = "query myDb.coll command: { a: 3 } numYields:0 0ms";
ASSERT_EQ(reportString, expectedReportString);