Skip to content

Commit 6cff57e

Browse files
TimothyGutargos
authored andcommitted
test: fix incorrect file mode check
PR-URL: #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>
1 parent f0c871b commit 6cff57e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-net-server-listen-path.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ function randomPipePath() {
6363
}, common.mustCall(() => {
6464
if (process.platform !== 'win32') {
6565
const mode = fs.statSync(handlePath).mode;
66-
assert.ok(mode & fs.constants.S_IROTH !== 0);
67-
assert.ok(mode & fs.constants.S_IWOTH !== 0);
66+
assert.notStrictEqual(mode & fs.constants.S_IROTH, 0);
67+
assert.notStrictEqual(mode & fs.constants.S_IWOTH, 0);
6868
}
6969
srv.close();
7070
}));

0 commit comments

Comments
 (0)