Skip to content

Commit 591dd4e

Browse files
tniessenMylesBorins
authored andcommittedJan 9, 2018
test: fix crypto test case to use correct encoding
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]>
1 parent f87a1a6 commit 591dd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/parallel/test-crypto-authenticated.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ for (const test of TEST_CASES) {
389389
assert.strictEqual(msg, test.plain);
390390
} else {
391391
// assert that final throws if input data could not be verified!
392-
assert.throws(function() { decrypt.final('ascii'); }, errMessages.auth);
392+
assert.throws(function() { decrypt.final('hex'); }, errMessages.auth);
393393
}
394394
}
395395

0 commit comments

Comments
 (0)
Please sign in to comment.