Skip to content

Commit

Permalink
test: add callback to fs.close() in test-fs-chmod
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Jul 11, 2017
1 parent 19259f4 commit a47a9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-chmod.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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);
}));
}));

Expand Down

0 comments on commit a47a9b7

Please sign in to comment.