Skip to content

Commit 8b3c233

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 8e38ad9 commit 8b3c233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-crypto-authenticated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ for (const i in TEST_CASES) {
391391
assert.strictEqual(msg, test.plain);
392392
} else {
393393
// assert that final throws if input data could not be verified!
394-
assert.throws(function() { decrypt.final('ascii'); }, errMessages.auth);
394+
assert.throws(function() { decrypt.final('hex'); }, errMessages.auth);
395395
}
396396
}
397397

0 commit comments

Comments
 (0)