diff options
author | Dan Pasette <dan@10gen.com> | 2015-06-22 09:59:14 -0400 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2015-06-22 10:00:57 -0400 |
commit | 1e786585ae83e55e13016a6761a121b502c887f8 (patch) | |
tree | 0d293b08d819409580f7087654b5d6f81d5d40a4 /jstests/repl | |
parent | da608f5500d66c4c509c3f3794662086393fe743 (diff) | |
download | mongo-1e786585ae83e55e13016a6761a121b502c887f8.tar.gz |
SERVER-19052 use itcount() instead of count() in repl tests
Diffstat (limited to 'jstests/repl')
-rw-r--r-- | jstests/repl/repl3.js | 2 | ||||
-rw-r--r-- | jstests/repl/repl5.js | 2 |
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; } ); } |