summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_with_write_load.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/initial_sync_with_write_load.js')
-rw-r--r--jstests/replsets/initial_sync_with_write_load.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync_with_write_load.js b/jstests/replsets/initial_sync_with_write_load.js
index 180487abe50..fc1164c6c43 100644
--- a/jstests/replsets/initial_sync_with_write_load.js
+++ b/jstests/replsets/initial_sync_with_write_load.js
@@ -35,7 +35,7 @@ assert(master == conns[0], "conns[0] assumed to be master");
assert(a_conn.host == master.host);
// create an oplog entry with an insert
-assert.writeOK(
+assert.commandWorked(
A.foo.insert({x: 1}, {writeConcern: {w: 1, wtimeout: ReplSetTest.kDefaultTimeoutMS}}));
replTest.stop(BID);
@@ -44,7 +44,7 @@ var work = function() {
print("starting loadgen");
var start = new Date().getTime();
- assert.writeOK(db.timeToStartTrigger.insert({_id: 1}));
+ assert.commandWorked(db.timeToStartTrigger.insert({_id: 1}));
while (true) {
for (x = 0; x < 100; x++) {