test: fix error messages for OpenSSL-1.0.2p

After upgradeing OpenSSL-1.0.2p, test-tls-passphrase.js was failed
due to change of error messages.

Ref: 18026c0215
PR-URL: https://github.com/nodejs/node/pull/22320
Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
Shigeki Ohtsu
2018-08-15 01:08:51 +09:00
committed by Rod Vagg
parent 8f59838ae7
commit 3139897ff5

View File

@@ -221,7 +221,7 @@ server.listen(0, common.mustCall(function() {
}, common.mustCall());
})).unref();
const errMessagePassword = /bad password read/;
const errMessagePassword = /bad decrypt/;
// Missing passphrase
assert.throws(function() {