summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Pasette <dan@10gen.com>2015-06-22 09:59:14 -0400
committerDan Pasette <dan@mongodb.com>2015-07-22 13:22:55 -0400
commite46b0bd8b8d96d48b712234c8cc5c2a998494d50 (patch)
tree0e371e25e4f76ac0e3f1ef4abe7d63971be921bd
parent64b4fff5e0e1aa7cca7555864bfe0cac01cc76a7 (diff)
downloadmongo-e46b0bd8b8d96d48b712234c8cc5c2a998494d50.tar.gz
SERVER-19052 use itcount() instead of count() in repl tests
(cherry picked from commit 1e786585ae83e55e13016a6761a121b502c887f8)
-rw-r--r--jstests/repl/repl3.js2
-rw-r--r--jstests/repl/repl5.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/jstests/repl/repl3.js b/jstests/repl/repl3.js
index 5ace9b69d2f..9a5c2724b2e 100644
--- a/jstests/repl/repl3.js
+++ b/jstests/repl/repl3.js
@@ -6,7 +6,7 @@ soonCount = function( count ) {
assert.soon( function() {
// print( "check count" );
// print( "count: " + s.getDB( baseName ).z.find().count() + ", expected: " + count );
- return s.getDB( baseName ).a.find().count() == count;
+ return s.getDB( baseName ).a.find().itcount() == count;
} );
}
diff --git a/jstests/repl/repl5.js b/jstests/repl/repl5.js
index aeba7eb1095..7c25d27afc3 100644
--- a/jstests/repl/repl5.js
+++ b/jstests/repl/repl5.js
@@ -3,7 +3,7 @@
soonCountAtLeast = function( db, coll, count ) {
assert.soon( function() {
// print( "count: " + s.getDB( db )[ coll ].find().count() );
- return s.getDB( db )[ coll ].find().count() >= count;
+ return s.getDB( db )[ coll ].find().itcount() >= count;
} );
}