Skip to content

Commit 8173b0c

Browse files
rhanfordtargos
authored andcommitted
test: use relative path in pipePrefix
Modified pipePrefix to use relative path on windows, previously tests failed when the full path was 120+ characters PR-URL: #15988 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent fa836fc commit 8173b0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/common/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ Object.defineProperty(exports, 'hasFipsCrypto', {
258258
});
259259

260260
{
261-
const pipePrefix = exports.isWindows ? '\\\\.\\pipe\\' : `${exports.tmpDir}/`;
261+
const localRelative = path.relative(process.cwd(), `${exports.tmpDir}/`);
262+
const pipePrefix = exports.isWindows ? '\\\\.\\pipe\\' : localRelative;
262263
const pipeName = `node-test.${process.pid}.sock`;
263264
exports.PIPE = pipePrefix + pipeName;
264265
}

0 commit comments

Comments
 (0)