comparison h2_ssl.t @ 1937:2a0a6035a1af

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 25 Aug 2023 18:12:08 +0400
parents f9bb84e4c8e2
children 6d3a8f4eb9b2
comparison
equal deleted inserted replaced
1936:716d7500317d 1937:2a0a6035a1af
92 and not $t->has_feature('libressl:3.4.0'); 92 and not $t->has_feature('libressl:3.4.0');
93 skip 'OpenSSL too old', 1 93 skip 'OpenSSL too old', 1
94 if $t->has_module('OpenSSL') 94 if $t->has_module('OpenSSL')
95 and not $t->has_feature('openssl:1.1.0'); 95 and not $t->has_feature('openssl:1.1.0');
96 96
97 TODO: {
98 local $TODO = 'not yet' unless $t->has_version('1.21.4');
99
100 ok(!get_ssl_socket(['unknown']), 'alpn rejected'); 97 ok(!get_ssl_socket(['unknown']), 'alpn rejected');
101
102 }
103 98
104 } 99 }
105 100
106 like(http_get('/', socket => get_ssl_socket(['http/1.1'])), 101 like(http_get('/', socket => get_ssl_socket(['http/1.1'])),
107 qr/200 OK/, 'alpn to HTTP/1.1 fallback'); 102 qr/200 OK/, 'alpn to HTTP/1.1 fallback');