in spec/TestingHelper.js [337:356]
static async startTestServer(needLogging, idx) {
if (!TestingHelper._servers)
TestingHelper._servers = [];
if (!TestingHelper._logReaders)
TestingHelper._logReaders = new Map();
TestingHelper._servers.push(await TestingHelper._startNode(needLogging, idx));
const logs = TestingHelper.getLogFiles(idx);
if (!needLogging && logs.length > 0)
throw 'Unexpected log file for node ' + idx;
if (needLogging) {
if (logs.length !== 1)
throw 'Unexpected number of log files for node ' + idx + ': ' + logs.length;
TestingHelper._logReaders.set(idx, new LogReader(logs[0]));
}
}