From 128fdb36721138c94eb2a00bd59d4361839cd0dd Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Wed, 6 Jul 2016 11:22:27 -0400 Subject: SERVER-24901 do not use fast count when checking collection size in replset tests --- jstests/replsets/drain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jstests/replsets/drain.js') 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); })(); -- cgit v1.2.1