summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/framework.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/framework.cpp')
-rw-r--r--src/mongo/dbtests/framework.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/dbtests/framework.cpp b/src/mongo/dbtests/framework.cpp
index 5a6e6099150..9ea6d7c9add 100644
--- a/src/mongo/dbtests/framework.cpp
+++ b/src/mongo/dbtests/framework.cpp
@@ -36,10 +36,11 @@
#include "mongo/base/checked_cast.h"
#include "mongo/base/status.h"
+#include "mongo/db/catalog/uuid_catalog.h"
#include "mongo/db/client.h"
#include "mongo/db/concurrency/lock_state.h"
#include "mongo/db/dbdirectclient.h"
-#include "mongo/db/op_observer_noop.h"
+#include "mongo/db/op_observer_registry.h"
#include "mongo/db/s/sharding_state.h"
#include "mongo/db/service_context.h"
#include "mongo/db/service_context_d.h"
@@ -90,7 +91,9 @@ int runDbTests(int argc, char** argv) {
checked_cast<ServiceContextMongoD*>(globalServiceContext)->createLockFile();
globalServiceContext->initializeGlobalStorageEngine();
- globalServiceContext->setOpObserver(stdx::make_unique<OpObserverNoop>());
+ auto registry = stdx::make_unique<OpObserverRegistry>();
+ registry->addObserver(stdx::make_unique<UUIDCatalogObserver>());
+ globalServiceContext->setOpObserver(std::move(registry));
int ret = unittest::Suite::run(frameworkGlobalParams.suites,
frameworkGlobalParams.filter,