From 9923f2fd97aa89851102c8cabec4fa768d6284d6 Mon Sep 17 00:00:00 2001 From: Xiangyu Yao Date: Wed, 18 Oct 2017 11:18:52 -0400 Subject: [PATCH] SERVER-28179 Adds test for using inMemory config string --- jstests/noPassthrough/inmem_config_str.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 jstests/noPassthrough/inmem_config_str.js 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"); +}());