diff options
Diffstat (limited to 'src/mongo/db/service_context_test_fixture.cpp')
-rw-r--r-- | src/mongo/db/service_context_test_fixture.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/db/service_context_test_fixture.cpp b/src/mongo/db/service_context_test_fixture.cpp index 46d92935bb8..e79c8ab7ea3 100644 --- a/src/mongo/db/service_context_test_fixture.cpp +++ b/src/mongo/db/service_context_test_fixture.cpp @@ -55,13 +55,7 @@ ServiceContext* ScopedGlobalServiceContextForTest::getServiceContext() { return getGlobalServiceContext(); } -ServiceContextTest::ServiceContextTest() { - Client::initThread(getThreadName()); -} - -ServiceContextTest::~ServiceContextTest() { - Client::destroy(); -} +ServiceContextTest::ServiceContextTest() : _threadClient(getGlobalServiceContext()) {} Client* ServiceContextTest::getClient() { return Client::getCurrent(); |