Browse Source

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

simple/test-debugger-repl-utf8 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
999757983c
  1. 4
      test/simple/test-debugger-repl-utf8.js

4
test/simple/test-debugger-repl-utf8.js

@ -25,9 +25,11 @@ var assert = require('assert');
var spawn = require('child_process').spawn;
var debug = require('_debugger');
var port = common.PORT + 1337;
var script = common.fixturesDir + '/breakpoints_utf8.js';
var child = spawn(process.execPath, ['debug', '--port=' + common.PORT, script]);
var child = spawn(process.execPath, ['debug', '--port=' + port, script]);
var buffer = '';
child.stdout.setEncoding('utf-8');

Loading…
Cancel
Save