summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_test_fixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/storage_engine_test_fixture.h')
-rw-r--r--src/mongo/db/storage/storage_engine_test_fixture.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mongo/db/storage/storage_engine_test_fixture.h b/src/mongo/db/storage/storage_engine_test_fixture.h
index cfb329992eb..db8f499f42b 100644
--- a/src/mongo/db/storage/storage_engine_test_fixture.h
+++ b/src/mongo/db/storage/storage_engine_test_fixture.h
@@ -76,7 +76,7 @@ public:
_storageEngine->getCatalog()->getMetaData(opCtx, catalogId),
std::move(rs));
CollectionCatalog::write(opCtx, [&](CollectionCatalog& catalog) {
- catalog.registerCollection(opCtx, std::move(coll));
+ catalog.registerCollection(opCtx, options.uuid.get(), std::move(coll));
});
return {{_storageEngine->getCatalog()->getEntry(catalogId)}};
@@ -183,10 +183,7 @@ public:
Collection* collection =
CollectionCatalog::get(opCtx)->lookupCollectionByNamespaceForMetadataWrite(opCtx,
collNs);
- auto descriptor = collection->getIndexCatalog()->findIndexByName(
- opCtx,
- key,
- IndexCatalog::InclusionPolicy::kReady | IndexCatalog::InclusionPolicy::kUnfinished);
+ auto descriptor = collection->getIndexCatalog()->findIndexByName(opCtx, key, true);
collection->indexBuildSuccess(opCtx, descriptor->getEntry());
}
@@ -202,8 +199,9 @@ public:
class StorageEngineRepairTest : public StorageEngineTest {
public:
+ // TODO (SERVER-65191): Use wiredTiger.
StorageEngineRepairTest()
- : StorageEngineTest(Options{}.repair(RepairAction::kRepair).ephemeral(false)) {}
+ : StorageEngineTest(Options{}.engine("ephemeralForTest").repair(RepairAction::kRepair)) {}
void tearDown() {
auto repairObserver = StorageRepairObserver::get(getGlobalServiceContext());
@@ -221,9 +219,4 @@ public:
}
};
-class StorageEngineTestNotEphemeral : public StorageEngineTest {
-public:
- StorageEngineTestNotEphemeral() : StorageEngineTest(Options{}.ephemeral(false)){};
-};
-
} // namespace mongo