From 61d47f2dd0c644141d8f868e5e05cba382db63de Mon Sep 17 00:00:00 2001 From: Luca Maraschi Date: Sat, 20 Jan 2018 12:14:42 -0800 Subject: [PATCH] Fixed assert --- test/parallel/test-fs-fchmod.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,