diff options
author | Benety Goh <benety@mongodb.com> | 2016-07-06 11:22:27 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-07-07 09:56:37 -0400 |
commit | 128fdb36721138c94eb2a00bd59d4361839cd0dd (patch) | |
tree | ed17c6b0ae48136e54f0d6240eb0f75f7927d99c /jstests/replsets/drain.js | |
parent | 56ebd8ce50af94b5beaa8af8f6b2da1d1accd44a (diff) | |
download | mongo-128fdb36721138c94eb2a00bd59d4361839cd0dd.tar.gz |
SERVER-24901 do not use fast count when checking collection size in replset tests
Diffstat (limited to 'jstests/replsets/drain.js')
-rw-r--r-- | jstests/replsets/drain.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/drain.js b/jstests/replsets/drain.js index a81d45f1d10..74c5868b821 100644 --- a/jstests/replsets/drain.js +++ b/jstests/replsets/drain.js @@ -43,7 +43,7 @@ } assert.writeOK(bulk.execute()); jsTestLog('Number of documents inserted into collection on primary: ' + numDocuments); - assert.eq(numDocuments, primary.getDB("foo").foo.count()); + assert.eq(numDocuments, primary.getDB("foo").foo.find().itcount()); assert.soon(function() { var serverStatus = secondary.getDB('foo').serverStatus(); @@ -105,5 +105,5 @@ // Check for at least two entries. There was one prior to freezing op application on the // secondary and we cannot guarantee all writes reached the secondary's op queue prior to // shutting down the original primary. - assert.gte(primary.getDB("foo").foo.count(), 2); + assert.gte(primary.getDB("foo").foo.find().itcount(), 2); })(); |