summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-10-11 20:09:11 -0400
committerBenety Goh <benety@mongodb.com>2018-10-11 20:09:11 -0400
commit3810ea3cec6bcba7c0e62ce0170ea34b31046dcf (patch)
treec770fe564fb7745577c1ba2f9003a83e80c0769f /src/mongo/dbtests
parent0272ec068f5da65458d7a081beac583b33b610d1 (diff)
downloadmongo-3810ea3cec6bcba7c0e62ce0170ea34b31046dcf.tar.gz
SERVER-36889 unshim IndexCatalog
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r--src/mongo/dbtests/indexupdatetests.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/dbtests/indexupdatetests.cpp b/src/mongo/dbtests/indexupdatetests.cpp
index 943feff5c69..ea318ad9728 100644
--- a/src/mongo/dbtests/indexupdatetests.cpp
+++ b/src/mongo/dbtests/indexupdatetests.cpp
@@ -633,14 +633,16 @@ protected:
}
};
-class IndexCatatalogFixIndexKey {
+class IndexCatatalogFixIndexKey : public IndexBuildBase {
public:
void run() {
- ASSERT_BSONOBJ_EQ(BSON("x" << 1), IndexCatalog::fixIndexKey(BSON("x" << 1)));
+ auto indexCatalog = collection()->getIndexCatalog();
- ASSERT_BSONOBJ_EQ(BSON("_id" << 1), IndexCatalog::fixIndexKey(BSON("_id" << 1)));
+ ASSERT_BSONOBJ_EQ(BSON("x" << 1), indexCatalog->fixIndexKey(BSON("x" << 1)));
- ASSERT_BSONOBJ_EQ(BSON("_id" << 1), IndexCatalog::fixIndexKey(BSON("_id" << true)));
+ ASSERT_BSONOBJ_EQ(BSON("_id" << 1), indexCatalog->fixIndexKey(BSON("_id" << 1)));
+
+ ASSERT_BSONOBJ_EQ(BSON("_id" << 1), indexCatalog->fixIndexKey(BSON("_id" << true)));
}
};