summaryrefslogtreecommitdiff
path: root/jstests/replsets/commands_that_write_accept_wc.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/commands_that_write_accept_wc.js')
-rw-r--r--jstests/replsets/commands_that_write_accept_wc.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/commands_that_write_accept_wc.js b/jstests/replsets/commands_that_write_accept_wc.js
index e18d43c50df..e99ef63ddba 100644
--- a/jstests/replsets/commands_that_write_accept_wc.js
+++ b/jstests/replsets/commands_that_write_accept_wc.js
@@ -57,7 +57,7 @@
update: collName,
updates: [{
q: {type: 'oak'},
- u: [{$addFields: {type: 'ginkgo'}}],
+ u: [{$set: {type: 'ginkgo'}}],
}],
writeConcern: {w: 'majority'}
},
@@ -94,7 +94,7 @@
req: {
findAndModify: collName,
query: {type: 'oak'},
- update: [{$addFields: {type: 'ginkgo'}}],
+ update: [{$set: {type: 'ginkgo'}}],
writeConcern: {w: 'majority'}
},
setupFunc: function() {