Skip to content

Commit a5bcf39

Browse files
committed
squash: make linter happy
1 parent c60424b commit a5bcf39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-dir-close-gc-deprecation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const warning =
1919
// Test that closing Dir automatically using iterator doesn't emit warning
2020
{
2121
const dir = await opendir(import.meta.dirname);
22-
for await (const _ of dir) {}
22+
await Array.fromAsync(dir);
2323
await rejects(dir.close(), { code: 'ERR_DIR_CLOSED' });
2424
}
2525

0 commit comments

Comments
 (0)