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 2018-01-02 23:32:55 +01:00 committed by Ruben Bridgewater
parent a2d0623fa8
commit 5160dd0365
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

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);
}
}