Mercurial > hg > nginx-tests
diff h2_proxy_request_buffering_redirect.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 | 5ac6efbe5552 |
children | 11463d379570 |
line wrap: on
line diff
--- a/h2_proxy_request_buffering_redirect.t Wed May 31 13:29:31 2023 +0400 +++ b/h2_proxy_request_buffering_redirect.t Wed May 31 13:29:34 2023 +0400 @@ -25,7 +25,7 @@ my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite/)->plan(1); -$t->write_file_expand('nginx.conf', <<'EOF')->run(); +$t->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -68,6 +68,12 @@ EOF +# suppress deprecation warning + +open OLDERR, ">&", \*STDERR; close STDERR; +$t->run(); +open STDERR, ">&", \*OLDERR; + ############################################################################### # unbuffered request body