diff options
Diffstat (limited to 'src/mongo/db/catalog/collection_catalog_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection_catalog_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/collection_catalog_test.cpp b/src/mongo/db/catalog/collection_catalog_test.cpp index 205a5647e75..0ae2f578d5f 100644 --- a/src/mongo/db/catalog/collection_catalog_test.cpp +++ b/src/mongo/db/catalog/collection_catalog_test.cpp @@ -64,8 +64,11 @@ public: auto collection = std::make_unique<CollectionMock>(nss); col = collection.get(); + ASSERT_TRUE(catalog.empty(nss.db())); + // Register dummy collection in catalog. catalog.registerCollection(colUUID, std::move(collection)); + ASSERT_FALSE(catalog.empty(nss.db())); } protected: |