diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-08-12 11:49:19 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-12 23:21:21 +0000 |
commit | 09ec1c660b2fc1753d5ee008b6a722b518cf6377 (patch) | |
tree | 890fa434cc88f2fad3a9e703d2d033f9bead8a72 /jstests/replsets/read_committed.js | |
parent | ffd3325967460d6b41763f53ae41ec2912d6de48 (diff) | |
download | mongo-09ec1c660b2fc1753d5ee008b6a722b518cf6377.tar.gz |
SERVER-50280 Remove 'startSetIfSupportsReadMajority' test helper function in favour of the 'requires_majority_read_concern' tag
Diffstat (limited to 'jstests/replsets/read_committed.js')
-rw-r--r-- | jstests/replsets/read_committed.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/jstests/replsets/read_committed.js b/jstests/replsets/read_committed.js index 7260fec8698..3792d242375 100644 --- a/jstests/replsets/read_committed.js +++ b/jstests/replsets/read_committed.js @@ -4,10 +4,9 @@ * - With the only data-bearing secondary down, committed reads should not include newly inserted * data. * - When data-bearing node comes back up and catches up, writes should be readable. + * + * @tags: [requires_majority_read_concern] */ - -load("jstests/replsets/rslib.js"); // For startSetIfSupportsReadMajority. - (function() { "use strict"; @@ -56,12 +55,7 @@ var name = "read_committed"; var replTest = new ReplSetTest({name: name, nodes: 3, nodeOptions: {enableMajorityReadConcern: ''}}); -if (!startSetIfSupportsReadMajority(replTest)) { - jsTest.log("skipping test since storage engine doesn't support committed reads"); - replTest.stopSet(); - return; -} - +replTest.startSet(); var nodes = replTest.nodeList(); var config = { "_id": name, |