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: https://github.com/openssl/openssl/commit/18026c0215e942f0ad33a6012cb8cad2f51f841b
PR-URL: https://github.com/nodejs/node/pull/22320
Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
Shigeki Ohtsu authored and Rod Vagg committed 2018-08-15 16:16:21 +10:00
1 parent 8f59838ae7
commit 3139897ff5
1 file changed
+1 -1
+1 -1
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() {