[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>
Wed, 19 Jun 2024 10:03:27 +0000 (12:03 +0200)
commite0be2edca087a3404cc57e76a24f6f20ffd87667
treeddeb859f0fe9882cdd5c06f7ee2a6d0cb8572e48
parentf7682fc225d05a8db36a38c43d8137db3b3167a0
[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