summaryrefslogtreecommitdiff
path: root/jstests/replsets/no_chaining.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/no_chaining.js')
-rw-r--r--jstests/replsets/no_chaining.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/replsets/no_chaining.js b/jstests/replsets/no_chaining.js
index 7f8f8fb2087..fe5998395a0 100644
--- a/jstests/replsets/no_chaining.js
+++ b/jstests/replsets/no_chaining.js
@@ -18,6 +18,11 @@ replTest.initiate({
});
var primary = replTest.getPrimary();
+// The default WC is majority and stopServerReplication could prevent satisfying any majority
+// writes.
+assert.commandWorked(primary.adminCommand(
+ {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}}));
+
replTest.awaitReplication();
var breakNetwork = function() {