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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]>
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

+1-1
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)