Browse Source

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.
v0.9.1-release
Ben Noordhuis 13 years ago
parent
commit
f9aa01de32
  1. 3
      test/simple/test-debugger-repl.js

3
test/simple/test-debugger-repl.js

@ -27,7 +27,8 @@ var debug = require('_debugger');
var script = common.fixturesDir + '/breakpoints.js'; 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 = ''; var buffer = '';
child.stdout.setEncoding('utf-8'); child.stdout.setEncoding('utf-8');

Loading…
Cancel
Save