summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-02-26 17:33:30 -0800
committerisaacs <i@izs.me>2013-02-26 17:33:30 -0800
commit937662b03e55b639792d7b635f80fb82db5a6044 (patch)
tree6a5129ad9039ccd43785566b46bf7f19d221348c
parentec378aaa690dee25b34a696bd893f646ab4616d1 (diff)
downloadnode-new-937662b03e55b639792d7b635f80fb82db5a6044.tar.gz
test: Use common.PORT to determine debugger port
-rw-r--r--test/simple/test-debugger-client.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/simple/test-debugger-client.js b/test/simple/test-debugger-client.js
index 665fe93945..8b4ba2c19c 100644
--- a/test/simple/test-debugger-client.js
+++ b/test/simple/test-debugger-client.js
@@ -27,6 +27,8 @@ var common = require('../common');
var assert = require('assert');
var debug = require('_debugger');
+var debugPort = common.PORT + 1337;
+debug.port = debugPort;
var spawn = require('child_process').spawn;
setTimeout(function() {
@@ -155,7 +157,8 @@ var script = 'setTimeout(function () { console.log("blah"); });' +
var nodeProcess;
function doTest(cb, done) {
- nodeProcess = spawn(process.execPath, ['-e', script]);
+ var args = ['--debug=' + debugPort, '-e', script];
+ nodeProcess = spawn(process.execPath, args);
nodeProcess.stdout.once('data', function(c) {
console.log('>>> new node process: %d', nodeProcess.pid);