0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-28179 Adds test for using inMemory config string

This commit is contained in:
Xiangyu Yao 2017-10-18 11:18:52 -04:00
parent ddacafb225
commit 9923f2fd97

View File

@ -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");
}());