comparison 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
comparison
equal deleted inserted replaced
1899:a0ee073760c5 1900:236d038dc04a
23 ############################################################################### 23 ###############################################################################
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_v2 proxy/); 28 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy/)->plan(49);
29 29
30 $t->write_file_expand('nginx.conf', <<'EOF'); 30 $t->write_file_expand('nginx.conf', <<'EOF');
31 31
32 %%TEST_GLOBALS%% 32 %%TEST_GLOBALS%%
33 33
63 } 63 }
64 } 64 }
65 65
66 EOF 66 EOF
67 67
68 # suppress deprecation warning
69
70 open OLDERR, ">&", \*STDERR; close STDERR;
68 $t->run(); 71 $t->run();
69 $t->plan(49); 72 open STDERR, ">&", \*OLDERR;
70 73
71 ############################################################################### 74 ###############################################################################
72 75
73 # unbuffered request body 76 # unbuffered request body
74 77