Skip to content

Commit e0cddf7

Browse files
committed
Tests: fixed h2_http2.t when nginx compiled without ALPN support.
ALPN support is only available with OpenSSL 1.0.2 or newer.
1 parent 6fc69a5 commit e0cddf7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

h2_http2.t

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,16 @@ ok(!get_ssl_socket(8443, 'disabled'), 'sni to disabled');
127127

128128
}
129129

130+
TODO: {
131+
local $TODO = 'OpenSSL too old'
132+
if $t->has_module('OpenSSL')
133+
and not $t->has_feature('openssl:1.0.2');
134+
130135
is(get_https(8443, 'http2'), 200, 'host to enabled');
131136
is(get_https(8443, 'disabled', 'http2'), 421, 'host to disabled');
132137

138+
}
139+
133140
# make sure HTTP/2 can be enabled selectively on virtual servers
134141

135142
TODO: {

0 commit comments

Comments
 (0)