changeset 1998:6b3b31149551

Tests: removed remnants of "listen ... http2" usage. The only remaining test which uses "listen ... http2" is h2_http2.t now, which is specifically to test that this form still works.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 09 Aug 2024 05:21:04 +0300
parents d2d00eea7b3d
children 15f538440a77
files h2_ssl.t h2_ssl_proxy_cache.t h2_ssl_proxy_protocol.t h2_ssl_variables.t
diffstat 4 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/h2_ssl.t
+++ b/h2_ssl.t
@@ -41,9 +41,11 @@ http {
     %%TEST_GLOBALS_HTTP%%
 
     server {
-        listen       127.0.0.1:8080 http2 ssl;
+        listen       127.0.0.1:8080 ssl;
         server_name  localhost;
 
+        http2 on;
+
         ssl_certificate_key localhost.key;
         ssl_certificate localhost.crt;
 
@@ -77,9 +79,7 @@ foreach my $name ('localhost') {
 $t->write_file('tbig.html',
 	join('', map { sprintf "XX%06dXX", $_ } (1 .. 500000)));
 
-open OLDERR, ">&", \*STDERR; close STDERR;
 $t->run();
-open STDERR, ">&", \*OLDERR;
 
 plan(skip_all => 'no ALPN negotiation') unless defined getconn();
 $t->plan(4);
--- a/h2_ssl_proxy_cache.t
+++ b/h2_ssl_proxy_cache.t
@@ -42,9 +42,11 @@ http {
     proxy_cache_path   %%TESTDIR%%/cache  keys_zone=NAME:1m;
 
     server {
-        listen       127.0.0.1:8080 http2 ssl sndbuf=32k;
+        listen       127.0.0.1:8080 ssl sndbuf=32k;
         server_name  localhost;
 
+        http2 on;
+
         ssl_certificate_key localhost.key;
         ssl_certificate localhost.crt;
 
@@ -88,9 +90,7 @@ foreach my $name ('localhost') {
 $t->write_file('tbig.html',
 	join('', map { sprintf "XX%06dXX", $_ } (1 .. 500000)));
 
-open OLDERR, ">&", \*STDERR; close STDERR;
 $t->run();
-open STDERR, ">&", \*OLDERR;
 
 plan(skip_all => 'no ALPN negotiation') unless defined getconn(port(8080));
 $t->plan(1);
--- a/h2_ssl_proxy_protocol.t
+++ b/h2_ssl_proxy_protocol.t
@@ -42,9 +42,11 @@ http {
     %%TEST_GLOBALS_HTTP%%
 
     server {
-        listen       127.0.0.1:8080 proxy_protocol http2 ssl;
+        listen       127.0.0.1:8080 proxy_protocol ssl;
         server_name  localhost;
 
+        http2 on;
+
         ssl_certificate_key localhost.key;
         ssl_certificate localhost.crt;
 
@@ -79,9 +81,7 @@ foreach my $name ('localhost') {
 
 $t->write_file('t.html', 'SEE-THIS');
 
-open OLDERR, ">&", \*STDERR; close STDERR;
 $t->run();
-open STDERR, ">&", \*OLDERR;
 
 ###############################################################################
 
--- a/h2_ssl_variables.t
+++ b/h2_ssl_variables.t
@@ -39,9 +39,11 @@ http {
     %%TEST_GLOBALS_HTTP%%
 
     server {
-        listen       127.0.0.1:8080 http2 ssl;
+        listen       127.0.0.1:8080 ssl;
         server_name  localhost;
 
+        http2 on;
+
         ssl_certificate_key localhost.key;
         ssl_certificate localhost.crt;
 
@@ -80,9 +82,7 @@ foreach my $name ('localhost') {
 		or die "Can't create certificate for $name: $!\n";
 }
 
-open OLDERR, ">&", \*STDERR; close STDERR;
 $t->run();
-open STDERR, ">&", \*OLDERR;
 
 ###############################################################################