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:
parent
ddacafb225
commit
9923f2fd97
15
jstests/noPassthrough/inmem_config_str.js
Normal file
15
jstests/noPassthrough/inmem_config_str.js
Normal 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");
|
||||
}());
|
Loading…
Reference in New Issue
Block a user