[PATCH] test: update tests for OpenSSL 3.0.14
authorRichard Lau <rlau@redhat.com>
Mon, 10 Jun 2024 17:43:36 +0000 (18:43 +0100)
committerJérémy Lal <kapouer@melix.org>
Tue, 25 Jun 2024 10:57:00 +0000 (12:57 +0200)
commit883a3562a14badce626a633e6177eb4ae8ace2e7
treee15b76f66262199763cbcd6e7fb5a24735e75b42
parent521ef37247fabb161c3f73ea2c98851f1d101fe3
[PATCH] test: update tests for OpenSSL 3.0.14

Starting from OpenSSL 3.0.14, 3.1.6, 3.2.2, and 3.3.1, OpenSSL was fixed
to return an error reason string for bad/unknown application protocols.

Update tests to handle both the old `ECONNRESET` error on older versions
of OpenSSL and the new `ERR_SSL_TLSV1_ALERT_NO_APPLICATION_PROTOCOL` on
newer versions of OpenSSL.

Refs: https://github.com/openssl/openssl/pull/24338
PR-URL: https://github.com/nodejs/node/pull/53373
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Gbp-Pq: Topic build
Gbp-Pq: Name openssl-3.2.2-tests.patch
test/parallel/test-http2-https-fallback.js
test/parallel/test-http2-server-unknown-protocol.js
test/parallel/test-tls-alpn-server-client.js