var assert = require('assert');
var spawn = require('child_process').spawn;
-var port = common.PORT + 42;
-var args = ['--debug-port=' + port,
- common.fixturesDir + '/clustered-server/app.js'];
-var options = { stdio: ['inherit', 'inherit', 'pipe', 'ipc'] };
-var child = spawn(process.execPath, args, options);
-
+var args = [ common.fixturesDir + '/clustered-server/app.js' ];
+var child = spawn(process.execPath, args, {
+ stdio: [ 'pipe', 'pipe', 'pipe', 'ipc' ]
+});
var outputLines = [];
var outputTimerId;
var waitingForDebuggers = false;
function assertOutputLines() {
var expectedLines = [
'Starting debugger agent.',
- 'Debugger listening on port ' + (port + 0),
+ 'Debugger listening on port ' + 5858,
'Starting debugger agent.',
- 'Debugger listening on port ' + (port + 1),
+ 'Debugger listening on port ' + 5859,
'Starting debugger agent.',
- 'Debugger listening on port ' + (port + 2),
+ 'Debugger listening on port ' + 5860,
];
// Do not assume any particular order of output messages,