Commit f52e659e authored by Jérémy Lal's avatar Jérémy Lal

Fix a test result for openssl

parent 47f07215
......@@ -54,3 +54,14 @@ Forwarded: not-needed
if (hash->finalized_) {
return env->ThrowError("Digest already called");
}
--- a/test/parallel/test-crypto.js
+++ b/test/parallel/test-crypto.js
@@ -257,7 +257,7 @@
// Throws crypto error, so there is an opensslErrorStack property.
// The openSSL stack should have content.
if ((err instanceof Error) &&
- /asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag/.test(err) &&
+ /asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag/i.test(err) &&
err.opensslErrorStack !== undefined &&
Array.isArray(err.opensslErrorStack) &&
err.opensslErrorStack.length > 0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment