summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-09-16 12:37:28 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-09-16 17:31:26 -0400
commit81022044c190333da51620a06f75848229819830 (patch)
treeaf27af8fa7c5492bf8d0bec2692b9edb04577d1c
parent84f4c2dd3e9098b2fed8281d40c89f251b51db2a (diff)
downloadmongo-81022044c190333da51620a06f75848229819830.tar.gz
SERVER-26138 Do not use 'count' in shard_with_special_db_names.js
-rw-r--r--jstests/sharding/shard_with_special_db_names.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/sharding/shard_with_special_db_names.js b/jstests/sharding/shard_with_special_db_names.js
index 2eb6a3993da..06ad92ab5e9 100644
--- a/jstests/sharding/shard_with_special_db_names.js
+++ b/jstests/sharding/shard_with_special_db_names.js
@@ -21,9 +21,8 @@
s.getDB(specialDB).dropDatabase();
var cursor = s.getDB("config").collections.find({_id: specialNS});
-
- assert.eq(cursor.count(), 1);
assert(cursor.next()["dropped"]);
+ assert(!cursor.hasNext());
s.stop();
})();