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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
tniessen authored and MylesBorins committed Jan 9, 2018
1 parent f87a1a6 commit 591dd4e
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 @@ -389,7 +389,7 @@ for (const test of 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 591dd4e

Please sign in to comment.