diff options
Diffstat (limited to 'jstests/replsets/libs/two_phase_drops.js')
-rw-r--r-- | jstests/replsets/libs/two_phase_drops.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/replsets/libs/two_phase_drops.js b/jstests/replsets/libs/two_phase_drops.js index aa8ec6eb570..d81f0043322 100644 --- a/jstests/replsets/libs/two_phase_drops.js +++ b/jstests/replsets/libs/two_phase_drops.js @@ -125,6 +125,11 @@ class TwoPhaseDropCollectionTest { // Initiate the replica set. this.replTest.startSet(); this.replTest.initiate(); + + // The default WC is majority and rsSyncApplyStop failpoint will prevent satisfying any + // majority writes. + assert.commandWorked(this.replTest.getPrimary().adminCommand( + {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}})); this.replTest.awaitReplication(); return this.replTest; |