diff options
Diffstat (limited to 'jstests/sharding/zbigMapReduce.js')
-rw-r--r-- | jstests/sharding/zbigMapReduce.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/zbigMapReduce.js b/jstests/sharding/zbigMapReduce.js index dcd3b93fb71..1278d6c6dfe 100644 --- a/jstests/sharding/zbigMapReduce.js +++ b/jstests/sharding/zbigMapReduce.js @@ -38,7 +38,7 @@ for (var j = 0; j < 100; j++) { bulk.insert({i: idInc++, val: valInc++, y: str}); } } -assert.writeOK(bulk.execute({w: 2, wtimeout: 10 * 60 * 1000})); +assert.commandWorked(bulk.execute({w: 2, wtimeout: 10 * 60 * 1000})); jsTest.log("Documents inserted, doing double-checks of insert..."); @@ -126,7 +126,7 @@ for (var j = 0; j < 100; j++) { for (i = 0; i < 512; i++) { bulk.insert({i: idInc++, val: valInc++, y: str}); } - assert.writeOK(bulk.execute({w: 2, wtimeout: 10 * 60 * 1000})); + assert.commandWorked(bulk.execute({w: 2, wtimeout: 10 * 60 * 1000})); } jsTest.log("No errors..."); |