diff options
author | Moustafa Maher <m.maher@10gen.com> | 2021-08-11 19:09:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-12 19:05:52 +0000 |
commit | 05a7e410d067261ed8e940b7aa086a47502f45d1 (patch) | |
tree | c06fc8436b829d6be8a7495b39cebd7bb71f9045 /jstests/replsets/get_default_write_concern_majority.js | |
parent | 38e3f094947220e8ef44db605aab2ab95a9b040e (diff) | |
download | mongo-05a7e410d067261ed8e940b7aa086a47502f45d1.tar.gz |
SERVER-59227 Remove featureFlagDefaultWriteConcernMajority
Diffstat (limited to 'jstests/replsets/get_default_write_concern_majority.js')
-rw-r--r-- | jstests/replsets/get_default_write_concern_majority.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/jstests/replsets/get_default_write_concern_majority.js b/jstests/replsets/get_default_write_concern_majority.js index 619b4d9ccb8..925c8f980aa 100644 --- a/jstests/replsets/get_default_write_concern_majority.js +++ b/jstests/replsets/get_default_write_concern_majority.js @@ -6,7 +6,6 @@ */ (function() { 'use strict'; -load("jstests/libs/write_concern_util.js"); // For isDefaultWriteConcernMajorityFlagEnabled. jsTestLog("Test PSS configuration will set defaultWC to majority."); let replTest = new ReplSetTest({name: 'default_wc_majority', nodes: 3}); @@ -15,12 +14,8 @@ replTest.initiate(); let primary = replTest.getPrimary(); let res = assert.commandWorked(primary.adminCommand({getDefaultRWConcern: 1})); -if (isDefaultWriteConcernMajorityFlagEnabled(primary)) { - assert(res.hasOwnProperty("defaultWriteConcern")); - assert.eq({w: "majority", wtimeout: 0}, res.defaultWriteConcern, tojson(res)); -} else { - assert(!res.hasOwnProperty("defaultWriteConcern")); -} +assert(res.hasOwnProperty("defaultWriteConcern")); +assert.eq({w: "majority", wtimeout: 0}, res.defaultWriteConcern, tojson(res)); replTest.stopSet(); |