Skip to content

Commit e885bbe

Browse files
author
bcoe
committed
chore: revert changes in test-fs-rmdir-recursive.js
1 parent 197b439 commit e885bbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-fs-rmdir-recursive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function removeAsync(dir) {
7575
fs.rmdir(dir, { recursive: true }, common.mustCall((err) => {
7676
assert.ifError(err);
7777

78-
// Succeeds if recursive and directory (but will warn).
78+
// No error should occur if recursive and the directory does not exist.
7979
fs.rmdir(dir, { recursive: true }, common.mustCall((err) => {
8080
assert.ifError(err);
8181

@@ -145,7 +145,7 @@ function removeAsync(dir) {
145145
await fs.promises.rmdir(dir, { recursive: true });
146146

147147
// No error should occur if recursive and the directory does not exist.
148-
fs.promises.rmdir(dir, { recursive: true });
148+
await fs.promises.rmdir(dir, { recursive: true });
149149

150150
// Attempted removal should fail now because the directory is gone.
151151
assert.rejects(fs.promises.rmdir(dir), { syscall: 'rmdir' });

0 commit comments

Comments
 (0)