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/initial_sync4.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/initial_sync4.js')
-rw-r--r-- | jstests/replsets/initial_sync4.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync4.js b/jstests/replsets/initial_sync4.js index c2fcede9969..71550251b96 100644 --- a/jstests/replsets/initial_sync4.js +++ b/jstests/replsets/initial_sync4.js @@ -60,7 +60,7 @@ for (i = N; i < N * 2; i++) { mc.insert({_id: i, x: i}); } -assert.eq(N * 2, mc.count()); +assert.eq(N * 2, mc.find().itcount()); print("7. Wait for new node to become SECONDARY"); wait(function() { @@ -71,7 +71,7 @@ wait(function() { print("8. Wait for new node to have all the data"); wait(function() { - return sc.count() == mc.count(); + return sc.find().itcount() == mc.find().itcount(); }); assert.eq(mc.getIndexKeys().length, sc.getIndexKeys().length); |