diff --git a/test/parallel/test-fs-chmod.js b/test/parallel/test-fs-chmod.js index 5121fd89f99466..cbe9ef54bac6b3 100644 --- a/test/parallel/test-fs-chmod.js +++ b/test/parallel/test-fs-chmod.js @@ -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); })); }));