summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2013-02-25 22:19:16 -0800
committerisaacs <i@izs.me>2013-02-26 08:07:46 -0800
commit17a812618d6135c77c060e0f6ec396fb48eec6f0 (patch)
tree801326d9f9dc8c767a5d069273bb5f3dcc5e9ca7
parent17c6fe2e22efada157b9d1e6cf8acbb7ab43b08f (diff)
downloadnode-new-17a812618d6135c77c060e0f6ec396fb48eec6f0.tar.gz
test: optionally set common.PORT via env variable
-rw-r--r--test/common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common.js b/test/common.js
index 455a4cd9cf..d529ab2d70 100644
--- a/test/common.js
+++ b/test/common.js
@@ -26,7 +26,7 @@ exports.testDir = path.dirname(__filename);
exports.fixturesDir = path.join(exports.testDir, 'fixtures');
exports.libDir = path.join(exports.testDir, '../lib');
exports.tmpDir = path.join(exports.testDir, 'tmp');
-exports.PORT = 12346;
+exports.PORT = +process.env.NODE_COMMON_PORT || 12346;
if (process.platform === 'win32') {
exports.PIPE = '\\\\.\\pipe\\libuv-test';