summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/supports_read_concern_majority.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/supports_read_concern_majority.js')
-rw-r--r--jstests/noPassthrough/supports_read_concern_majority.js30
1 files changed, 5 insertions, 25 deletions
diff --git a/jstests/noPassthrough/supports_read_concern_majority.js b/jstests/noPassthrough/supports_read_concern_majority.js
index 64cc5b7dad1..5bf5bba6fa8 100644
--- a/jstests/noPassthrough/supports_read_concern_majority.js
+++ b/jstests/noPassthrough/supports_read_concern_majority.js
@@ -1,31 +1,11 @@
/**
- * Tests that mongod fails to start if enableMajorityReadConcern is set to false on non test only
- * storage engines, which are only expected to support read concern majority.
- *
- * Also verifies that the server automatically uses enableMajorityReadConcern=false if we're using a
- * test only storage engine.
+ * Tests that mongod fails to start if enableMajorityReadConcern is set to false.
*/
(function() {
"use strict";
-const storageEngine = jsTest.options().storageEngine;
-if (storageEngine === "wiredTiger" || storageEngine === "inMemory") {
- const conn = MongoRunner.runMongod({enableMajorityReadConcern: false});
- assert(!conn);
- var logContents = rawMongoProgramOutput();
- assert(logContents.indexOf("enableMajorityReadConcern:false is no longer supported") > 0);
- return;
-}
-
-if (storageEngine === "ephemeralForTest") {
- const conn = MongoRunner.runMongod();
- assert(conn);
- var logContents = rawMongoProgramOutput();
- assert(
- logContents.indexOf(
- "Test storage engine does not support enableMajorityReadConcern=true, forcibly setting to false") >
- 0);
- MongoRunner.stopMongod(conn);
- return;
-}
+const conn = MongoRunner.runMongod({enableMajorityReadConcern: false});
+assert(!conn);
+const logContents = rawMongoProgramOutput();
+assert(logContents.indexOf("enableMajorityReadConcern:false is no longer supported") > 0);
})(); \ No newline at end of file