0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-27 23:27:11 +01:00
mongodb/jstests/noPassthrough/server_parameters/ftdc_setparam.js
Vishnu K 43ef443301 SERVER-93417 split noPassthrough into sub-directories (#26097)
GitOrigin-RevId: 6e8157f468884ab056ac34ce0e4d45abe5d9c949
2024-09-13 17:08:56 +00:00

16 lines
419 B
JavaScript

// validate command line ftdc parameter parsing
var m = MongoRunner.runMongod({setParameter: "diagnosticDataCollectionPeriodMillis=101"});
// Check the defaults are correct
//
function getparam(field) {
var q = {getParameter: 1};
q[field] = 1;
var ret = m.getDB("admin").runCommand(q);
return ret[field];
}
assert.eq(getparam("diagnosticDataCollectionPeriodMillis"), 101);
MongoRunner.stopMongod(m);