test: don't let debugger listen on common.PORT

simple/test-debugger-repl has a tendency to fail and leave behind a stray
process that listens on common.PORT, making later tests fail with EADDRINUSE.
This commit is contained in:
Ben Noordhuis 2012-03-16 00:15:41 +01:00
parent dc752327bb
commit f9aa01de32

View File

@ -27,7 +27,8 @@ var debug = require('_debugger');
var script = common.fixturesDir + '/breakpoints.js';
var child = spawn(process.execPath, ['debug', '--port=' + common.PORT, script]);
var child = spawn(process.execPath,
['debug', '--port=' + (common.PORT + 1337), script]);
var buffer = '';
child.stdout.setEncoding('utf-8');