diff --git a/jstests/noPassthrough/inmem_config_str.js b/jstests/noPassthrough/inmem_config_str.js new file mode 100644 index 00000000000..4d0ef39be59 --- /dev/null +++ b/jstests/noPassthrough/inmem_config_str.js @@ -0,0 +1,15 @@ +// SERVER-28179 Test the startup of in-memory storage engine using --inMemoryEngineConfigString +(function() { + 'use strict'; + + if (jsTest.options().storageEngine !== "inMemory") { + jsTestLog("Skipping test because storageEngine is not inMemory"); + return; + } + + var mongod = MongoRunner.runMongod({ + storageEngine: 'inMemory', + inMemoryEngineConfigString: 'eviction=(threads_min=1)', + }); + assert.neq(null, mongod, "mongod failed to started up with --inMemoryEngineConfigString"); +}());