镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 591dd4e

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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent f87a1a6 commit 591dd4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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)