Skip to content

Commit 9e76028

Browse files
tniessenMylesBorins
authored andcommitted
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 1c4aa61 commit 9e76028

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
@@ -362,7 +362,7 @@ for (const i in TEST_CASES) {
362362
assert.strictEqual(msg, test.plain);
363363
} else {
364364
// assert that final throws if input data could not be verified!
365-
assert.throws(function() { decrypt.final('ascii'); }, errMessages.auth);
365+
assert.throws(function() { decrypt.final('hex'); }, errMessages.auth);
366366
}
367367
}
368368

0 commit comments

Comments
 (0)