comparison h2_ssl_proxy_cache.t @ 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
comparison
equal deleted inserted replaced
1997:d2d00eea7b3d 1998:6b3b31149551
40 %%TEST_GLOBALS_HTTP%% 40 %%TEST_GLOBALS_HTTP%%
41 41
42 proxy_cache_path %%TESTDIR%%/cache keys_zone=NAME:1m; 42 proxy_cache_path %%TESTDIR%%/cache keys_zone=NAME:1m;
43 43
44 server { 44 server {
45 listen 127.0.0.1:8080 http2 ssl sndbuf=32k; 45 listen 127.0.0.1:8080 ssl sndbuf=32k;
46 server_name localhost; 46 server_name localhost;
47
48 http2 on;
47 49
48 ssl_certificate_key localhost.key; 50 ssl_certificate_key localhost.key;
49 ssl_certificate localhost.crt; 51 ssl_certificate localhost.crt;
50 52
51 send_timeout 1s; 53 send_timeout 1s;
86 } 88 }
87 89
88 $t->write_file('tbig.html', 90 $t->write_file('tbig.html',
89 join('', map { sprintf "XX%06dXX", $_ } (1 .. 500000))); 91 join('', map { sprintf "XX%06dXX", $_ } (1 .. 500000)));
90 92
91 open OLDERR, ">&", \*STDERR; close STDERR;
92 $t->run(); 93 $t->run();
93 open STDERR, ">&", \*OLDERR;
94 94
95 plan(skip_all => 'no ALPN negotiation') unless defined getconn(port(8080)); 95 plan(skip_all => 'no ALPN negotiation') unless defined getconn(port(8080));
96 $t->plan(1); 96 $t->plan(1);
97 97
98 ############################################################################### 98 ###############################################################################