summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/clienttests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/clienttests.cpp')
-rw-r--r--src/mongo/dbtests/clienttests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/clienttests.cpp b/src/mongo/dbtests/clienttests.cpp
index cf32f78cb2e..609b9d07f1f 100644
--- a/src/mongo/dbtests/clienttests.cpp
+++ b/src/mongo/dbtests/clienttests.cpp
@@ -116,7 +116,7 @@ namespace ClientTests {
db.insert(ns(), BSON("x" << 1 << "y" << 2));
db.insert(ns(), BSON("x" << 2 << "y" << 2));
- ASSERT_EQUALS(1, nsdetails(ns())->nIndexes);
+ ASSERT_EQUALS(1, nsdetails(ns())->getCompletedIndexCount());
// _id index
ASSERT_EQUALS(1U, db.count("test.system.indexes"));
// test.buildindex
@@ -126,13 +126,13 @@ namespace ClientTests {
db.ensureIndex(ns(), BSON("y" << 1), true);
- ASSERT_EQUALS(1, nsdetails(ns())->nIndexes);
+ ASSERT_EQUALS(1, nsdetails(ns())->getCompletedIndexCount());
ASSERT_EQUALS(1U, db.count("test.system.indexes"));
ASSERT_EQUALS(3U, db.count("test.system.namespaces"));
db.ensureIndex(ns(), BSON("x" << 1), true);
- ASSERT_EQUALS(2, nsdetails(ns())->nIndexes);
+ ASSERT_EQUALS(2, nsdetails(ns())->getCompletedIndexCount());
ASSERT_EQUALS(2U, db.count("test.system.indexes"));
ASSERT_EQUALS(4U, db.count("test.system.namespaces"));
}