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.
This commit is contained in:
parent
7f4aba91d3
commit
999757983c
@ -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…
x
Reference in New Issue
Block a user