diff options
Diffstat (limited to 'test/parallel/test-fs-utimes.js')
-rw-r--r-- | test/parallel/test-fs-utimes.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/parallel/test-fs-utimes.js b/test/parallel/test-fs-utimes.js index be2d1d24df..bad9067864 100644 --- a/test/parallel/test-fs-utimes.js +++ b/test/parallel/test-fs-utimes.js @@ -101,8 +101,10 @@ function testIt(atime, mtime, callback) { common.expectsError( () => fs.futimesSync(-1, atime, mtime), { - code: 'ERR_INVALID_ARG_TYPE', - type: TypeError + code: 'ERR_OUT_OF_RANGE', + type: RangeError, + message: 'The value of "fd" is out of range. ' + + 'It must be >= 0 && < 4294967296. Received -1' } ); tests_run++; @@ -130,8 +132,10 @@ function testIt(atime, mtime, callback) { common.expectsError( () => fs.futimes(-1, atime, mtime, common.mustNotCall()), { - code: 'ERR_INVALID_ARG_TYPE', - type: TypeError, + code: 'ERR_OUT_OF_RANGE', + type: RangeError, + message: 'The value of "fd" is out of range. ' + + 'It must be >= 0 && < 4294967296. Received -1' } ); |