summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/replsets/rollback5.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/rollback5.js b/jstests/replsets/rollback5.js
index 42649dc5162..07a7712a267 100644
--- a/jstests/replsets/rollback5.js
+++ b/jstests/replsets/rollback5.js
@@ -76,11 +76,11 @@ replTest.awaitSecondaryNodes();
print("AFTER------------------");
printjson(A.foo.find().toArray());
-assert.eq(2, A.foo.count());
+assert.eq(2, A.foo.find().itcount());
assert.eq('req', A.foo.findOne({key: 'value1'}).req);
assert.eq(null, A.foo.findOne({key: 'value1'}).res);
reconnect(B);
-assert.eq(2, B.foo.count());
+assert.eq(2, B.foo.find().itcount());
assert.eq('req', B.foo.findOne({key: 'value1'}).req);
assert.eq(null, B.foo.findOne({key: 'value1'}).res);