test: fix incorrect file mode check
PR-URL: https://github.com/nodejs/node/pull/22023 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
0da144f4d4
commit
fdbc668ea3
@ -63,8 +63,8 @@ function randomPipePath() {
|
|||||||
}, common.mustCall(() => {
|
}, common.mustCall(() => {
|
||||||
if (process.platform !== 'win32') {
|
if (process.platform !== 'win32') {
|
||||||
const mode = fs.statSync(handlePath).mode;
|
const mode = fs.statSync(handlePath).mode;
|
||||||
assert.ok(mode & fs.constants.S_IROTH !== 0);
|
assert.notStrictEqual(mode & fs.constants.S_IROTH, 0);
|
||||||
assert.ok(mode & fs.constants.S_IWOTH !== 0);
|
assert.notStrictEqual(mode & fs.constants.S_IWOTH, 0);
|
||||||
}
|
}
|
||||||
srv.close();
|
srv.close();
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user