diff --git a/test/parallel/test-fs-fchmod.js b/test/parallel/test-fs-fchmod.js index 8a8504027700cb..42a11e8a96c02d 100644 --- a/test/parallel/test-fs-fchmod.js +++ b/test/parallel/test-fs-fchmod.js @@ -44,13 +44,13 @@ const fs = require('fs'); // Check for mode values range const modeUpperBoundaryValue = 0o777; -common.mustCall(() => fs.fchmod(1, modeUpperBoundaryValue)); -common.mustCall(() => fs.fchmodSync(1, modeUpperBoundaryValue)); +fs.fchmod(1, modeUpperBoundaryValue); +fs.fchmodSync(1, modeUpperBoundaryValue); // umask of 0o777 is equal to 775 const modeOutsideUpperBoundValue = 776; common.expectsError( - () => fs.fchmod(1, i), + () => fs.fchmod(1, modeOutsideUpperBoundValue), { code: 'ERR_OUT_OF_RANGE', type: RangeError, @@ -58,7 +58,7 @@ common.expectsError( } ); common.expectsError( - () => fs.fchmodSync(1, i), + () => fs.fchmodSync(1, modeOutsideUpperBoundValue), { code: 'ERR_OUT_OF_RANGE', type: RangeError,