Mercurial > hg > nginx-tests
diff 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 |
line wrap: on
line diff
--- a/h2_headers.t Wed May 31 13:29:31 2023 +0400 +++ b/h2_headers.t Wed May 31 13:29:34 2023 +0400 @@ -122,7 +122,14 @@ EOF $t->run_daemon(\&http_daemon); -$t->run()->waitforsocket('127.0.0.1:' . port(8083)); + +# suppress deprecation warning + +open OLDERR, ">&", \*STDERR; close STDERR; +$t->run(); +open STDERR, ">&", \*OLDERR; + +$t->waitforsocket('127.0.0.1:' . port(8083)); # file size is slightly beyond initial window size: 2**16 + 80 bytes