0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/noPassthrough/inmem_config_str.js
Max Hirschhorn 0fafa4fe27 SERVER-33533 Add MongoRunner.stopMongod() to inmem_config_str.js test.
This is required when the test would otherwise pass after the changes
from 8821cdb550.
2018-02-28 12:25:13 -05:00

18 lines
569 B
JavaScript

// 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");
MongoRunner.stopMongod(mongod);
}());