From 05daf5f7b77e01abf83f25bce859aaa1b1313567 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Sat, 18 Oct 2014 15:06:43 +1100 Subject: [PATCH] test: allow common.PIPE to be configured via env Add optional env var $NODE_COMMON_PIPE for setting common.PIPE to manually deal with maximum path lengths for unix sockets. PR-URL: https://github.com/node-forward/node/pull/26 Reviewed-By: Ben Noordhuis --- test/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common.js b/test/common.js index 622b0a3985f..17bfdc071c2 100644 --- a/test/common.js +++ b/test/common.js @@ -37,6 +37,8 @@ if (process.platform === 'win32') { } else { exports.PIPE = exports.tmpDir + '/test.sock'; } +if (process.env.NODE_COMMON_PIPE) + exports.PIPE = process.env.NODE_COMMON_PIPE; if (!fs.existsSync(exports.opensslCli)) exports.opensslCli = false;