diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2022-05-02 22:20:07 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-02 23:31:55 +0000 |
commit | 7eced17c3b5e1cf85284cf0f18bdc53d4bc97263 (patch) | |
tree | 048eab8e7f4c4deec02f0cd657a3e4e1e7f796bf /jstests/noPassthrough/supports_read_concern_majority.js | |
parent | eea1c78a009e0d477a825674dbf41e83afa4970b (diff) | |
download | mongo-7eced17c3b5e1cf85284cf0f18bdc53d4bc97263.tar.gz |
SERVER-65918 Remove references to `ephemeralForTest`
Diffstat (limited to 'jstests/noPassthrough/supports_read_concern_majority.js')
-rw-r--r-- | jstests/noPassthrough/supports_read_concern_majority.js | 30 |
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 |