# HG changeset patch # User Maxim Dounin # Date 1689118815 -10800 # Node ID 79ca9ab7531026aca25c0da13ff8005ce31d3db6 # Parent 161dc73812b3f6066aa52f664044988c82f69a66 Tests: fixed h2_http2.t when nginx compiled without ALPN support. ALPN support is only available with OpenSSL 1.0.2 or newer. diff --git a/h2_http2.t b/h2_http2.t --- 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: {