Skip to content

Commit 712596f

Browse files
committed
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 f971916 commit 712596f

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
@@ -114,7 +114,7 @@ fs.open(file2, 'a', common.mustCall((err, fd) => {
114114
assert.strictEqual(mode_sync, fs.fstatSync(fd).mode & 0o777);
115115
}
116116

117-
fs.close(fd);
117+
fs.close(fd, assert.ifError);
118118
}));
119119
}));
120120

0 commit comments

Comments
 (0)