Mercurial > hg > nginx-tests
diff h2_proxy_request_buffering.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 | 787d904bdfe0 |
children | 11463d379570 |
line wrap: on
line diff
--- a/h2_proxy_request_buffering.t Wed May 31 13:29:31 2023 +0400 +++ b/h2_proxy_request_buffering.t Wed May 31 13:29:34 2023 +0400 @@ -25,7 +25,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http http_v2 proxy/); +my $t = Test::Nginx->new()->has(qw/http http_v2 proxy/)->plan(49); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -65,8 +65,11 @@ EOF +# suppress deprecation warning + +open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -$t->plan(49); +open STDERR, ">&", \*OLDERR; ###############################################################################