Browse Source

test: optionally set common.PORT via env variable

v0.9.11-release
Timothy J Fontaine 12 years ago
committed by isaacs
parent
commit
17a812618d
  1. 2
      test/common.js

2
test/common.js

@ -26,7 +26,7 @@ exports.testDir = path.dirname(__filename);
exports.fixturesDir = path.join(exports.testDir, 'fixtures'); exports.fixturesDir = path.join(exports.testDir, 'fixtures');
exports.libDir = path.join(exports.testDir, '../lib'); exports.libDir = path.join(exports.testDir, '../lib');
exports.tmpDir = path.join(exports.testDir, 'tmp'); exports.tmpDir = path.join(exports.testDir, 'tmp');
exports.PORT = 12346; exports.PORT = +process.env.NODE_COMMON_PORT || 12346;
if (process.platform === 'win32') { if (process.platform === 'win32') {
exports.PIPE = '\\\\.\\pipe\\libuv-test'; exports.PIPE = '\\\\.\\pipe\\libuv-test';

Loading…
Cancel
Save