summaryrefslogtreecommitdiff
path: root/jstests/repl
diff options
context:
space:
mode:
authorDan Pasette <dan@10gen.com>2015-06-22 09:59:14 -0400
committerDan Pasette <dan@mongodb.com>2015-06-22 10:00:57 -0400
commit1e786585ae83e55e13016a6761a121b502c887f8 (patch)
tree0d293b08d819409580f7087654b5d6f81d5d40a4 /jstests/repl
parentda608f5500d66c4c509c3f3794662086393fe743 (diff)
downloadmongo-1e786585ae83e55e13016a6761a121b502c887f8.tar.gz
SERVER-19052 use itcount() instead of count() in repl tests
Diffstat (limited to 'jstests/repl')
-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;
} );
}