Skip to content

Commit 5160dd0

Browse files
tniessenBridgeAR
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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent a2d0623 commit 5160dd0

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)