test: optionally set common.PORT via env variable
This is a back-port of commit 17a8126 from the master branch.
This commit is contained in:
parent
7189b3ed33
commit
0b70a14abf
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user