mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
test: fix common.PIPE path bug
`common.PIPE` is returning a path name in `test` rather than in the
`tmp` directory for each test. This is causing multiple test failures in
CI. Make the path name inside the temporary directories again. This way
the pipe is removed by `common.refreshTmpDir()` on POSIX.
The bug in `common.PIPE` was introduced in
c34ae48083
.
PR-URL: https://github.com/nodejs/node/pull/16364
Fixes: https://github.com/nodejs/node/issues/16290
Fixes: https://github.com/nodejs/node/issues/16323
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
This commit is contained in:
parent
fe4675b301
commit
8e268c70dd
@ -274,7 +274,7 @@ Object.defineProperty(exports, 'hasFipsCrypto', {
|
||||
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;
|
||||
exports.PIPE = path.join(pipePrefix, pipeName);
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user