summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/inmem_config_str.js
blob: ecc34ab0634963386a806184d81320bae444eb55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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);
}());