summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_survives_network_error.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/initial_sync_survives_network_error.js')
-rw-r--r--jstests/replsets/initial_sync_survives_network_error.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/initial_sync_survives_network_error.js b/jstests/replsets/initial_sync_survives_network_error.js
index 6d2b5575abb..ce21f9b05f9 100644
--- a/jstests/replsets/initial_sync_survives_network_error.js
+++ b/jstests/replsets/initial_sync_survives_network_error.js
@@ -14,6 +14,10 @@ rst.initiate();
const primary = rst.getPrimary();
const primaryDb = primary.getDB("test");
+// The default WC is majority and this test can't satisfy majority writes.
+assert.commandWorked(primary.adminCommand(
+ {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}}));
+
// Add some data to be cloned.
assert.commandWorked(primaryDb.test.insert([{a: 1}, {b: 2}, {c: 3}]));