blob: 4898da084b0349fb45a88ee5b6dc55be08b0c040 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* SERVER-28990: Tests that a mongod started with --repair doesn't attempt binding to a port.
*/
(function() {
"use strict";
let dbpath = MongoRunner.dataPath + "repair_flag_transport_layer";
resetDbpath(dbpath);
function runTest(conn) {
let returnCode =
runNonMongoProgram("mongod", "--port", conn.port, "--repair", "--dbpath", dbpath);
assert.eq(returnCode, 0, "expected mongod --repair to execute successfully regardless of port");
}
let conn = MongoRunner.runMongod();
runTest(conn);
MongoRunner.stopMongod(conn);
})();
|