Mercurial > hg > nginx-tests
diff h2_proxy_request_buffering_ssl.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_ssl.t +++ b/h2_proxy_request_buffering_ssl.t @@ -26,7 +26,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy/) - ->has_daemon('openssl'); + ->has_daemon('openssl')->plan(40); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -98,8 +98,11 @@ foreach my $name ('localhost') { or die "Can't create certificate for $name: $!\n"; } +# suppress deprecation warning + +open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -$t->plan(40); +open STDERR, ">&", \*OLDERR; ###############################################################################