diff options
Diffstat (limited to 'jstests/replsets/initial_sync_fcv.js')
-rw-r--r-- | jstests/replsets/initial_sync_fcv.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/initial_sync_fcv.js b/jstests/replsets/initial_sync_fcv.js index 015de237d98..29bea77d145 100644 --- a/jstests/replsets/initial_sync_fcv.js +++ b/jstests/replsets/initial_sync_fcv.js @@ -25,6 +25,9 @@ rst.initiate(replSetConfig); const primary = rst.getPrimary(); const dbName = 'foo'; const collName = 'bar'; +// 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"}})); assert.commandWorked(primary.getDB(dbName).getCollection(collName).insert({a: 1})); |