Skip to content

Commit 1f54cf5

Browse files
artmakstargos
authored andcommitted
test: improve test-fs-open
If there is a file 'path' in the root dir, the test will fail with the 'ENOTDIR' instead of 'ENOENT'. Change path to something more unlikely. PR-URL: #30280 Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 56b3205 commit 1f54cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-open.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let caughtException = false;
2929
try {
3030
// Should throw ENOENT, not EBADF
3131
// see https://github.com/joyent/node/pull/1228
32-
fs.openSync('/path/to/file/that/does/not/exist', 'r');
32+
fs.openSync('/8hvftyuncxrt/path/to/file/that/does/not/exist', 'r');
3333
} catch (e) {
3434
assert.strictEqual(e.code, 'ENOENT');
3535
caughtException = true;

0 commit comments

Comments
 (0)