Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fixup! fs: fix rmsync error swallowing
  • Loading branch information
Linkgoron committed May 19, 2021
commit 0f911280910cb0d331eca133e6b6ee527bcfdcf2
4 changes: 2 additions & 2 deletions test/parallel/test-fs-rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function removeAsync(dir) {
}

{
// check endless recursion.
// Check endless recursion.
// https://github.com/nodejs/node/issues/34580
const dirname = nextDirPath();
fs.mkdirSync(dirname, { recursive: true });
Expand All @@ -336,7 +336,7 @@ function removeAsync(dir) {
fs.mkdirSync(middle);
fs.mkdirSync(path.join(middle, 'leaf')); // Make `middle` non-empty
const mode = common.isWindows ? 0 : 0o555;
const code = common.isWindows ? 'EPERM': 'EACCES';
const code = common.isWindows ? 'EPERM' : 'EACCES';
try {
fs.chmodSync(middle, mode);
assert.throws(() => {
Expand Down