Mercurial > hg > nginx-tests
diff h2_request_body_preread.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 | c9d7e2a26b2d |
children |
line wrap: on
line diff
--- a/h2_request_body_preread.t +++ b/h2_request_body_preread.t @@ -23,7 +23,7 @@ use Test::Nginx::HTTP2; select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http http_v2 proxy limit_req/); +my $t = Test::Nginx->new()->has(qw/http http_v2 proxy limit_req/)->plan(9); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -89,7 +89,12 @@ http { EOF $t->write_file('t', ''); -$t->run()->plan(9); + +# suppress deprecation warning + +open OLDERR, ">&", \*STDERR; close STDERR; +$t->run(); +open STDERR, ">&", \*OLDERR; ###############################################################################