diff options
Diffstat (limited to 'src/mongo/db/storage/storage_repair_observer_test.cpp')
-rw-r--r-- | src/mongo/db/storage/storage_repair_observer_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_repair_observer_test.cpp b/src/mongo/db/storage/storage_repair_observer_test.cpp index 310f48422f0..2fe3cc786d0 100644 --- a/src/mongo/db/storage/storage_repair_observer_test.cpp +++ b/src/mongo/db/storage/storage_repair_observer_test.cpp @@ -101,6 +101,11 @@ public: return StorageRepairObserver::get(getServiceContext()); } + void setUp() { + ServiceContextMongoDTest::setUp(); + storageGlobalParams.repair = true; + } + void tearDown() { auto repairObserver = getRepairObserver(); if (_assertRepairIncompleteOnTearDown) { @@ -117,6 +122,7 @@ public: "mod_getDescription"_attr = mod.getDescription()); } } + storageGlobalParams.repair = false; } private: |