comparison 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
comparison
equal deleted inserted replaced
1899:a0ee073760c5 1900:236d038dc04a
24 24
25 select STDERR; $| = 1; 25 select STDERR; $| = 1;
26 select STDOUT; $| = 1; 26 select STDOUT; $| = 1;
27 27
28 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy/) 28 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy/)
29 ->has_daemon('openssl'); 29 ->has_daemon('openssl')->plan(40);
30 30
31 $t->write_file_expand('nginx.conf', <<'EOF'); 31 $t->write_file_expand('nginx.conf', <<'EOF');
32 32
33 %%TEST_GLOBALS%% 33 %%TEST_GLOBALS%%
34 34
96 . "-out $d/$name.crt -keyout $d/$name.key " 96 . "-out $d/$name.crt -keyout $d/$name.key "
97 . ">>$d/openssl.out 2>&1") == 0 97 . ">>$d/openssl.out 2>&1") == 0
98 or die "Can't create certificate for $name: $!\n"; 98 or die "Can't create certificate for $name: $!\n";
99 } 99 }
100 100
101 # suppress deprecation warning
102
103 open OLDERR, ">&", \*STDERR; close STDERR;
101 $t->run(); 104 $t->run();
102 $t->plan(40); 105 open STDERR, ">&", \*OLDERR;
103 106
104 ############################################################################### 107 ###############################################################################
105 108
106 # unbuffered request body 109 # unbuffered request body
107 110