Skip to content

Commit

Permalink
test: fix crypto test case to use correct encoding
Browse files Browse the repository at this point in the history
The callback would have errored out anyway due to the incorrect
encoding, and that error is not the point of this test case.

PR-URL: #17956
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
tniessen authored and MylesBorins committed Feb 12, 2018
1 parent 1b86b0a commit b8c5dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-crypto-authenticated.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ for (const i in TEST_CASES) {
assert.strictEqual(msg, test.plain);
} else {
// assert that final throws if input data could not be verified!
assert.throws(function() { decrypt.final('ascii'); }, errMessages.auth);
assert.throws(function() { decrypt.final('hex'); }, errMessages.auth);
}
}

Expand Down

0 comments on commit b8c5dd0

Please sign in to comment.