Skip to content

Commit 61d47f2

Browse files
committed
Fixed assert
1 parent cc739e1 commit 61d47f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-fs-fchmod.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ const fs = require('fs');
4444

4545
// Check for mode values range
4646
const modeUpperBoundaryValue = 0o777;
47-
common.mustCall(() => fs.fchmod(1, modeUpperBoundaryValue));
48-
common.mustCall(() => fs.fchmodSync(1, modeUpperBoundaryValue));
47+
fs.fchmod(1, modeUpperBoundaryValue);
48+
fs.fchmodSync(1, modeUpperBoundaryValue);
4949

5050
// umask of 0o777 is equal to 775
5151
const modeOutsideUpperBoundValue = 776;
5252
common.expectsError(
53-
() => fs.fchmod(1, i),
53+
() => fs.fchmod(1, modeOutsideUpperBoundValue),
5454
{
5555
code: 'ERR_OUT_OF_RANGE',
5656
type: RangeError,
5757
message: 'The value of "mode" is out of range.'
5858
}
5959
);
6060
common.expectsError(
61-
() => fs.fchmodSync(1, i),
61+
() => fs.fchmodSync(1, modeOutsideUpperBoundValue),
6262
{
6363
code: 'ERR_OUT_OF_RANGE',
6464
type: RangeError,

0 commit comments

Comments
 (0)