From f9aa01de326477be6a77ae258f080c57171a55fa Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 16 Mar 2012 00:15:41 +0100 Subject: [PATCH] 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. --- test/simple/test-debugger-repl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/simple/test-debugger-repl.js b/test/simple/test-debugger-repl.js index 663a9e60eb..e62847f343 100644 --- a/test/simple/test-debugger-repl.js +++ b/test/simple/test-debugger-repl.js @@ -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');