diff options
Diffstat (limited to 'src/mongo/dbtests/clienttests.cpp')
-rw-r--r-- | src/mongo/dbtests/clienttests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/clienttests.cpp b/src/mongo/dbtests/clienttests.cpp index 62c529da26b..57666d5e899 100644 --- a/src/mongo/dbtests/clienttests.cpp +++ b/src/mongo/dbtests/clienttests.cpp @@ -150,7 +150,8 @@ public: ASSERT_OK(dbtests::createIndex(&opCtx, ns(), BSON("a" << 1 << "b" << 1))); - unique_ptr<DBClientCursor> c = db.query(ns(), Query().sort(BSON("a" << 1 << "b" << 1))); + unique_ptr<DBClientCursor> c = + db.query(NamespaceString(ns()), Query().sort(BSON("a" << 1 << "b" << 1))); ASSERT_EQUALS(1111, c->itcount()); } }; @@ -167,7 +168,8 @@ public: db.insert(ns(), BSON("i" << i)); } - unique_ptr<DBClientCursor> c = db.query(ns(), Query().sort(BSON("i" << 1))); + unique_ptr<DBClientCursor> c = + db.query(NamespaceString(ns()), Query().sort(BSON("i" << 1))); BSONObj o = c->next(); ASSERT(c->more()); |