summaryrefslogtreecommitdiff
path: root/src/mongo/executor/task_executor_test_fixture.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2018-07-18 13:46:53 -0400
committerHenrik Edin <henrik.edin@mongodb.com>2018-07-27 16:20:53 -0400
commitbfe170e49b1dc10b2badde45bc13c057a2f8ab61 (patch)
treef71d35e019c3194d033545c73296d415e18eb496 /src/mongo/executor/task_executor_test_fixture.cpp
parent018905518ca552775255f36a52e9fd187f9d61f8 (diff)
downloadmongo-bfe170e49b1dc10b2badde45bc13c057a2f8ab61.tar.gz
SERVER-36258 Construct ServiceContext after mongo initializers complete.
Diffstat (limited to 'src/mongo/executor/task_executor_test_fixture.cpp')
-rw-r--r--src/mongo/executor/task_executor_test_fixture.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/executor/task_executor_test_fixture.cpp b/src/mongo/executor/task_executor_test_fixture.cpp
index f58657bacbb..d534377b643 100644
--- a/src/mongo/executor/task_executor_test_fixture.cpp
+++ b/src/mongo/executor/task_executor_test_fixture.cpp
@@ -65,6 +65,11 @@ void TaskExecutorTest::setUp() {
_executor = makeTaskExecutor(std::move(net));
}
+void TaskExecutorTest::tearDown() {
+ _executor.reset(nullptr);
+ _net = nullptr;
+}
+
void TaskExecutorTest::launchExecutorThread() {
_executor->startup();
postExecutorThreadLaunch();