comparison h2_headers.t @ 1900:236d038dc04a

Tests: suppress "listen .. http2;" deprecation warnings.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 31 May 2023 13:29:34 +0400
parents 1e1d0f3874b0
children 2a0a6035a1af
comparison
equal deleted inserted replaced
1899:a0ee073760c5 1900:236d038dc04a
120 } 120 }
121 121
122 EOF 122 EOF
123 123
124 $t->run_daemon(\&http_daemon); 124 $t->run_daemon(\&http_daemon);
125 $t->run()->waitforsocket('127.0.0.1:' . port(8083)); 125
126 # suppress deprecation warning
127
128 open OLDERR, ">&", \*STDERR; close STDERR;
129 $t->run();
130 open STDERR, ">&", \*OLDERR;
131
132 $t->waitforsocket('127.0.0.1:' . port(8083));
126 133
127 # file size is slightly beyond initial window size: 2**16 + 80 bytes 134 # file size is slightly beyond initial window size: 2**16 + 80 bytes
128 135
129 $t->write_file('t1.html', 136 $t->write_file('t1.html',
130 join('', map { sprintf "X%04dXXX", $_ } (1 .. 8202))); 137 join('', map { sprintf "X%04dXXX", $_ } (1 .. 8202)));