changeset 1741:3408029c09f5

Tests: added HTTP/2 test with rejected ALPN.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 21 Oct 2021 13:56:15 +0300
parents f7e667a4898d
children 7bfa47410cc0
files h2_ssl.t
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h2_ssl.t
+++ b/h2_ssl.t
@@ -89,10 +89,17 @@ open OLDERR, ">&", \*STDERR; close STDER
 open STDERR, ">&", \*OLDERR;
 
 plan(skip_all => 'no ALPN negotiation') unless defined getconn();
-$t->plan(2);
+$t->plan(3);
 
 ###############################################################################
 
+TODO: {
+local $TODO = 'not yet' unless $t->has_version('1.21.4');
+
+ok(!get_ssl_socket(['unknown']), 'alpn rejected');
+
+}
+
 like(http_get('/', socket => get_ssl_socket(['http/1.1'])),
 	qr/200 OK/, 'alpn to HTTP/1.1 fallback');