summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/supports_read_concern_majority.js
blob: 5bf5bba6fa86996eba3ad1b05bb7523dd45c6744 (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);
})();