diff options
author | Benety Goh <benety@mongodb.com> | 2021-09-27 19:08:32 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-27 23:35:27 +0000 |
commit | 6b3acc72af58963a772213cc882e34b6db5bf144 (patch) | |
tree | 1c37708f6b81afac87a0f4605261f304695cfdd5 /src/mongo/db/stats/resource_consumption_metrics_test.cpp | |
parent | 8f7c3dd749c5f2a6c410e19e78fad96fb0bf03cb (diff) | |
download | mongo-6b3acc72af58963a772213cc882e34b6db5bf144.tar.gz |
SERVER-59618 add LockerNoopClientObserver and register this ClientObserver in unit tests with Service Context
Diffstat (limited to 'src/mongo/db/stats/resource_consumption_metrics_test.cpp')
-rw-r--r-- | src/mongo/db/stats/resource_consumption_metrics_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/stats/resource_consumption_metrics_test.cpp b/src/mongo/db/stats/resource_consumption_metrics_test.cpp index 8c7d8a756ef..74245509594 100644 --- a/src/mongo/db/stats/resource_consumption_metrics_test.cpp +++ b/src/mongo/db/stats/resource_consumption_metrics_test.cpp @@ -29,8 +29,8 @@ #include "mongo/platform/basic.h" +#include "mongo/db/concurrency/locker_noop_service_context_test_fixture.h" #include "mongo/db/repl/replication_coordinator_mock.h" -#include "mongo/db/service_context_test_fixture.h" #include "mongo/db/stats/operation_resource_consumption_gen.h" #include "mongo/db/stats/resource_consumption_metrics.h" #include "mongo/unittest/unittest.h" @@ -49,7 +49,7 @@ ServerParameter* getServerParameter(const std::string& name) { } } // namespace -class ResourceConsumptionMetricsTest : public ServiceContextTest { +class ResourceConsumptionMetricsTest : public LockerNoopServiceContextTest { public: void setUp() { _opCtx = makeOperationContext(); |