mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: add callback to fs.close() in test-fs-chmod
To avoid '[DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.' PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
f971916885
commit
712596fc45
1 file changed
+1
-1
@@ -114,7 +114,7 @@ fs.open(file2, 'a', common.mustCall((err, fd) => {
|
||||
assert.strictEqual(mode_sync, fs.fstatSync(fd).mode & 0o777);
|
||||
}
|
||||
|
||||
fs.close(fd);
|
||||
fs.close(fd, assert.ifError);
|
||||
}));
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user