Skip to content

Commit a47a9b7

Browse files
vsemozhetbytMylesBorins
authored andcommitted
test: add callback to fs.close() in test-fs-chmod
To avoid '[DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.' PR-URL: #12795 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 19259f4 commit a47a9b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-chmod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fs.open(file2, 'a', common.mustCall((err, fd) => {
9393
assert.strictEqual(mode_sync, fs.fstatSync(fd).mode & 0o777);
9494
}
9595

96-
fs.close(fd);
96+
fs.close(fd, assert.ifError);
9797
}));
9898
}));
9999

0 commit comments

Comments
 (0)