summaryrefslogtreecommitdiff
path: root/src/mongo/db/ftdc/ftdc_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ftdc/ftdc_test.cpp')
-rw-r--r--src/mongo/db/ftdc/ftdc_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/ftdc/ftdc_test.cpp b/src/mongo/db/ftdc/ftdc_test.cpp
index aa8429daf31..fe10d5db21e 100644
--- a/src/mongo/db/ftdc/ftdc_test.cpp
+++ b/src/mongo/db/ftdc/ftdc_test.cpp
@@ -112,6 +112,7 @@ MONGO_INITIALIZER_WITH_PREREQUISITES(FTDCTestInit,
("ThreadNameInitializer"))(InitializerContext* context) {
setGlobalServiceContext(stdx::make_unique<ServiceContextNoop>());
+ getGlobalServiceContext()->setFastClockSource(stdx::make_unique<ClockSourceMock>());
getGlobalServiceContext()->setPreciseClockSource(stdx::make_unique<ClockSourceMock>());
Client::initThreadIfNotAlready("UnitTest");