From 6721bcce742c2c75074fc8409614b7ef46b0194e Mon Sep 17 00:00:00 2001 From: Randal Hanford Date: Fri, 6 Oct 2017 10:51:12 -0700 Subject: [PATCH] Modified pipPrefix to using relative path verses full path. Test failed because my full path was 120+ characters --- test/common/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/common/index.js b/test/common/index.js index 278f9f6a781474..bd5413ce1f03e9 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -258,9 +258,12 @@ Object.defineProperty(exports, 'hasFipsCrypto', { }); { - const pipePrefix = exports.isWindows ? '\\\\.\\pipe\\' : `${exports.tmpDir}/`; + const localRelative = path.relative(process.cwd(), `${exports.tmpDir}/`); + const pipePrefix = exports.isWindows ? '\\\\.\\pipe\\' : localRelative; const pipeName = `node-test.${process.pid}.sock`; + exports.PIPE = pipePrefix + pipeName; + } {