summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/apply_ops_errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod/apply_ops_errors.js')
-rw-r--r--jstests/noPassthroughWithMongod/apply_ops_errors.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/apply_ops_errors.js b/jstests/noPassthroughWithMongod/apply_ops_errors.js
index 31353523810..d2f584af787 100644
--- a/jstests/noPassthroughWithMongod/apply_ops_errors.js
+++ b/jstests/noPassthroughWithMongod/apply_ops_errors.js
@@ -22,8 +22,11 @@
coll.ensureIndex({x: 1}, {unique: true});
coll.insert({_id: 1, x: "init"});
- var res =
- db.runCommand({applyOps: [{op: "i", ns: coll.getFullName(), o: {_id: 2, x: "init"}}, ]});
+ var res = db.runCommand({
+ applyOps: [
+ {op: "i", ns: coll.getFullName(), o: {_id: 2, x: "init"}},
+ ]
+ });
assert.eq(1, res.applied);
assert(res.code);