summaryrefslogtreecommitdiff
path: root/jstests/replsets/apply_ops_lastop.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/apply_ops_lastop.js')
-rw-r--r--jstests/replsets/apply_ops_lastop.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/jstests/replsets/apply_ops_lastop.js b/jstests/replsets/apply_ops_lastop.js
index 1e7df9a9035..e3ff0f19554 100644
--- a/jstests/replsets/apply_ops_lastop.js
+++ b/jstests/replsets/apply_ops_lastop.js
@@ -27,15 +27,12 @@
var insertApplyOps = [{op: "i", ns: 'foo.bar', o: {_id: 1, a: "b"}}];
var deleteApplyOps = [{op: "d", ns: 'foo.bar', o: {_id: 1, a: "b"}}];
var badPreCondition = [{ns: 'foo.bar', q: {_id: 10, a: "aaa"}, res: {a: "aaa"}}];
- var majorityWriteConcern = {
- w: 'majority',
- wtimeout: 30000
- };
+ var majorityWriteConcern = {w: 'majority', wtimeout: 30000};
// Set up some data
assert.writeOK(coll.insert({x: 1})); // creating the collection so applyOps works
- assert.commandWorked(m1.getDB('foo').runCommand(
- {applyOps: insertApplyOps, writeConcern: majorityWriteConcern}));
+ assert.commandWorked(
+ m1.getDB('foo').runCommand({applyOps: insertApplyOps, writeConcern: majorityWriteConcern}));
var insertOp = m1.getDB('foo').getLastErrorObj('majority', 30000).lastOp;
// No-op applyOps