Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: address test failure
  • Loading branch information
BridgeAR committed Apr 26, 2018
commit d09cb7007ca9660d472c97e5394a758c242ceecf
5 changes: 3 additions & 2 deletions test/parallel/test-fs-error-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,7 @@ if (!common.isAIX) {
// Check copyFile with invalid flags.
{
const validateError = {
message: 'EINVAL: invalid argument, copyfile ' +
`'${existingFile}' -> '${nonexistentFile}'`,
message: `EINVAL: invalid argument, copyfile -> '${nonexistentFile}'`,
errno: uv.UV_EINVAL,
code: 'EINVAL',
syscall: 'copyfile'
Expand All @@ -649,6 +648,8 @@ if (!common.isAIX) {
fs.copyFile(existingFile, nonexistentFile, -1,
common.expectsError(validateError));

validateError.message = 'EINVAL: invalid argument, copyfile ' +
`'${existingFile}' -> '${nonexistentFile}'`;
assert.throws(
() => fs.copyFileSync(existingFile, nonexistentFile, -1),
validateError
Expand Down