summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/reporter_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/reporter_test.cpp')
-rw-r--r--src/mongo/db/repl/reporter_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/reporter_test.cpp b/src/mongo/db/repl/reporter_test.cpp
index 383b2cf8aca..f0261d64f5f 100644
--- a/src/mongo/db/repl/reporter_test.cpp
+++ b/src/mongo/db/repl/reporter_test.cpp
@@ -182,7 +182,8 @@ void ReporterTest::setUp() {
}
void ReporterTest::tearDown() {
- executor::ThreadPoolExecutorTest::tearDown();
+ getExecutor().shutdown();
+ getExecutor().join();
// Executor may still invoke reporter's callback before shutting down.
reporter.reset();
posUpdater.reset();