jstests/libs/write_concern_util.js
// Stops replication at all shard secondaries.
Stops replication at all shard secondaries.
Stops replication at all shard secondaries .
function stopReplicationOnSecondariesOfAllShards(st) {
    assert.commandWorked(st.s.adminCommand(
        {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}}));
    st._rsObjects.forEach(rs => stopReplicationOnSecondaries(rs, false));
}
function stopReplicationOnSecondariesOfAllShards ( st ) { assert . commandWorked ( st . s . adminCommand ( { setDefaultRWConcern : 1 , defaultWriteConcern : { w : 1 } , writeConcern : { w : "majority" } } ) ) ; st . _rsObjects . forEach ( rs => stopReplicationOnSecondaries ( rs , false ) ) ; }
Stops replication at all shard secondaries.
Stops replication at all shard secondaries .
// The default WC is majority and this test can't satisfy majority writes.