diff options
Diffstat (limited to 'jstests/replsets/apply_ops_lastop.js')
-rw-r--r-- | jstests/replsets/apply_ops_lastop.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/apply_ops_lastop.js b/jstests/replsets/apply_ops_lastop.js index e1c9fdb1823..c6257fe907c 100644 --- a/jstests/replsets/apply_ops_lastop.js +++ b/jstests/replsets/apply_ops_lastop.js @@ -30,7 +30,7 @@ var badPreCondition = [{ns: 'foo.bar', q: {_id: 10, a: "aaa"}, res: {a: "aaa"}}] var majorityWriteConcern = {w: 'majority', wtimeout: 30000}; // Set up some data -assert.writeOK(coll.insert({x: 1})); // creating the collection so applyOps works +assert.commandWorked(coll.insert({x: 1})); // creating the collection so applyOps works assert.commandWorked( m1.getDB('foo').runCommand({applyOps: insertApplyOps, writeConcern: majorityWriteConcern})); var insertOp = m1.getDB('foo').getLastErrorObj('majority', 30000).lastOp; |