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: https://github.com/nodejs/node/pull/17956
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Tobias Nießen authored and Myles Borins committed 2018-01-09 04:55:01 -05:00
1 parent f87a1a6ca8
commit 591dd4e398
1 file changed
+1 -1
+1 -1
View File
@@ -389,7 +389,7 @@ for (const test of TEST_CASES) {
assert.strictEqual(msg, test.plain);
} else {
// assert that final throws if input data could not be verified!
assert.throws(function() { decrypt.final('ascii'); }, errMessages.auth);
assert.throws(function() { decrypt.final('hex'); }, errMessages.auth);
}
}