Mercurial > hg > nginx-tests
diff h2_ssl.t @ 1743:2318ed01ce53
Tests: skip ALPN rejection tests with too old LibreSSL.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 21 Oct 2021 20:18:01 +0300 |
parents | 3408029c09f5 |
children | 38bd7e75fe69 |
line wrap: on
line diff
--- a/h2_ssl.t +++ b/h2_ssl.t @@ -93,6 +93,10 @@ plan(skip_all => 'no ALPN negotiation') ############################################################################### +SKIP: { +$t->{_configure_args} =~ /LibreSSL ([\d\.]+)/; +skip 'LibreSSL too old', 1 if defined $1 and $1 lt '3.4.0'; + TODO: { local $TODO = 'not yet' unless $t->has_version('1.21.4'); @@ -100,6 +104,8 @@ ok(!get_ssl_socket(['unknown']), 'alpn r } +} + like(http_get('/', socket => get_ssl_socket(['http/1.1'])), qr/200 OK/, 'alpn to HTTP/1.1 fallback');