From 17a812618d6135c77c060e0f6ec396fb48eec6f0 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Mon, 25 Feb 2013 22:19:16 -0800 Subject: [PATCH] test: optionally set common.PORT via env variable --- test/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common.js b/test/common.js index 455a4cd..d529ab2 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'; -- 2.7.4