summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/update_yield1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/update_yield1.js')
-rw-r--r--jstests/noPassthrough/update_yield1.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/jstests/noPassthrough/update_yield1.js b/jstests/noPassthrough/update_yield1.js
index 6f8004149fb..0135be037ce 100644
--- a/jstests/noPassthrough/update_yield1.js
+++ b/jstests/noPassthrough/update_yield1.js
@@ -31,11 +31,8 @@
assert.gt(yieldCount, (nDocsToInsert / worksPerYield) - 2);
// A multi-update shouldn't yield if it has $isolated.
- explain = coll.explain('executionStats').update(
- {$isolated: true},
- {$inc: {counter: 1}},
- {multi: true}
- );
+ explain = coll.explain('executionStats')
+ .update({$isolated: true}, {$inc: {counter: 1}}, {multi: true});
assert.commandWorked(explain);
yieldCount = explain.executionStats.executionStages.saveState;
assert.eq(yieldCount, 0, 'yielded during $isolated multi-update');