diff options
Diffstat (limited to 'src/mongo/dbtests/querytests.cpp')
-rw-r--r-- | src/mongo/dbtests/querytests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp index fa8ff99ae97..4b906f00f2d 100644 --- a/src/mongo/dbtests/querytests.cpp +++ b/src/mongo/dbtests/querytests.cpp @@ -1401,10 +1401,10 @@ public: ASSERT(Helpers::findOne(&_opCtx, ctx.getCollection(), BSON("_id" << 20), res)); ASSERT_EQUALS(40, res["x"].numberInt()); - ASSERT(Helpers::findById(&_opCtx, ns(), BSON("_id" << 20), res)); + ASSERT(Helpers::findById(&_opCtx, nss(), BSON("_id" << 20), res)); ASSERT_EQUALS(40, res["x"].numberInt()); - ASSERT(!Helpers::findById(&_opCtx, ns(), BSON("_id" << 200), res)); + ASSERT(!Helpers::findById(&_opCtx, nss(), BSON("_id" << 200), res)); long long slow; long long fast; @@ -1420,7 +1420,7 @@ public: { Timer t; for (int i = 0; i < n; i++) { - ASSERT(Helpers::findById(&_opCtx, ns(), BSON("_id" << 20), res)); + ASSERT(Helpers::findById(&_opCtx, nss(), BSON("_id" << 20), res)); } fast = t.micros(); } @@ -1445,7 +1445,7 @@ public: BSONObj res; for (int i = 0; i < 1000; i++) { - bool found = Helpers::findById(&_opCtx, ns(), BSON("_id" << i), res); + bool found = Helpers::findById(&_opCtx, nss(), BSON("_id" << i), res); ASSERT_EQUALS(i % 2, int(found)); } } |