Skip to content

Commit 05daf5f

Browse files
rvaggbnoordhuis
authored andcommitted
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: node-forward/node#26 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 3a786d3 commit 05daf5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ if (process.platform === 'win32') {
3737
} else {
3838
exports.PIPE = exports.tmpDir + '/test.sock';
3939
}
40+
if (process.env.NODE_COMMON_PIPE)
41+
exports.PIPE = process.env.NODE_COMMON_PIPE;
4042
if (!fs.existsSync(exports.opensslCli))
4143
exports.opensslCli = false;
4244

0 commit comments

Comments
 (0)