Skip to content

Commit 6cff57e

Browse files
TimothyGutargos
authored andcommitted
test: fix incorrect file mode check
PR-URL: #22023 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
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)