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