Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: fix 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.
  • Loading branch information
artmaks committed Nov 6, 2019
commit 05174261f54bb8ab11abfef4a56a595b28d5707b
2 changes: 1 addition & 1 deletion test/parallel/test-fs-open.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let caughtException = false;
try {
// Should throw ENOENT, not EBADF
// see https://github.com/joyent/node/pull/1228
fs.openSync('/path/to/file/that/does/not/exist', 'r');
fs.openSync('/8hvftyuncxrt/path/to/file/that/does/not/exist', 'r');
} catch (e) {
assert.strictEqual(e.code, 'ENOENT');
caughtException = true;
Expand Down