Mercurial > hg > nginx-tests
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 Mon Jul 10 18:30:08 2023 +0400 +++ b/h2_http2.t Wed Jul 12 02:40:15 2023 +0300 @@ -127,9 +127,16 @@ } +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: {