summaryrefslogtreecommitdiff
path: root/jstests/replsets/replset2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/replset2.js')
-rw-r--r--jstests/replsets/replset2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/replset2.js b/jstests/replsets/replset2.js
index 8b789db3547..5c3114a0893 100644
--- a/jstests/replsets/replset2.js
+++ b/jstests/replsets/replset2.js
@@ -46,7 +46,7 @@ doTest = function(signal) {
printjson(master.getDB("admin").runCommand("replSetGetStatus"));
- assert.writeOK(bulk.execute({w: 3, wtimeout: ReplSetTest.kDefaultTimeoutMS}));
+ assert.commandWorked(bulk.execute({w: 3, wtimeout: ReplSetTest.kDefaultTimeoutMS}));
print("replset2.js **** TEMP 1a ****");
@@ -66,7 +66,7 @@ doTest = function(signal) {
print("replset2.js **** Try inserting a single record ****");
master.getDB(testDB).dropDatabase();
var options = {writeConcern: {w: 3, wtimeout: ReplSetTest.kDefaultTimeoutMS}};
- assert.writeOK(master.getDB(testDB).foo.insert({n: 1}, options));
+ assert.commandWorked(master.getDB(testDB).foo.insert({n: 1}, options));
m1 = master.getDB(testDB).foo.findOne({n: 1});
printjson(m1);
@@ -85,7 +85,7 @@ doTest = function(signal) {
for (var n = 0; n < 1000; n++) {
bulk.insert({n: n, data: bigData});
}
- assert.writeOK(bulk.execute({w: 3, wtimeout: ReplSetTest.kDefaultTimeoutMS}));
+ assert.commandWorked(bulk.execute({w: 3, wtimeout: ReplSetTest.kDefaultTimeoutMS}));
print("replset2.js **** V1 ");