changeset 1920:79ca9ab75310

Tests: fixed h2_http2.t when nginx compiled without ALPN support. ALPN support is only available with OpenSSL 1.0.2 or newer.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 12 Jul 2023 02:40:15 +0300
parents 161dc73812b3
children 07656d303199
files h2_http2.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h2_http2.t
+++ b/h2_http2.t
@@ -127,9 +127,16 @@ ok(!get_ssl_socket(8443, 'disabled'), 's
 
 }
 
+TODO: {
+local $TODO = 'OpenSSL too old'
+	if $t->has_module('OpenSSL')
+	and not $t->has_feature('openssl:1.0.2');
+
 is(get_https(8443, 'http2'), 200, 'host to enabled');
 is(get_https(8443, 'disabled', 'http2'), 421, 'host to disabled');
 
+}
+
 # make sure HTTP/2 can be enabled selectively on virtual servers
 
 TODO: {