summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/supports_read_concern_majority.js
blob: dc8af14014d525b45289a4b53bacebc2aadbfe53 (plain)
1
2
3
4
5
6
7
8
9
10
11
/**
 * Tests that mongod fails to start if enableMajorityReadConcern is set to false.
 */
(function() {
"use strict";

const conn = MongoRunner.runMongod({enableMajorityReadConcern: false});
assert(!conn);
const logContents = rawMongoProgramOutput();
assert(logContents.indexOf("enableMajorityReadConcern:false is no longer supported") > 0);
})();