mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user