summaryrefslogtreecommitdiff
path: root/jstests/sharding/conf_server_write_concern.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/conf_server_write_concern.js')
-rw-r--r--jstests/sharding/conf_server_write_concern.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/sharding/conf_server_write_concern.js b/jstests/sharding/conf_server_write_concern.js
index c4e08939548..d6ca0e006e0 100644
--- a/jstests/sharding/conf_server_write_concern.js
+++ b/jstests/sharding/conf_server_write_concern.js
@@ -10,12 +10,12 @@ function writeToConfigTest() {
{_id: 'balancer'}, {$set: {stopped: true}}, {writeConcern: {w: 'majority'}}));
// w:1 should still work - it gets automatically upconverted to w:majority
- assert.writeOK(confDB.settings.update(
- {_id: 'balancer'}, {$set: {stopped: true}}, {writeConcern: {w: 1}}));
+ assert.writeOK(
+ confDB.settings.update({_id: 'balancer'}, {$set: {stopped: true}}, {writeConcern: {w: 1}}));
// Write concerns other than w:1 and w:majority should fail.
- assert.writeError(confDB.settings.update(
- {_id: 'balancer'}, {$set: {stopped: true}}, {writeConcern: {w: 2}}));
+ assert.writeError(
+ confDB.settings.update({_id: 'balancer'}, {$set: {stopped: true}}, {writeConcern: {w: 2}}));
st.stop();
}