comparison h2_fastcgi_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 4e48bf51714f
children
comparison
equal deleted inserted replaced
1899:a0ee073760c5 1900:236d038dc04a
21 ############################################################################### 21 ###############################################################################
22 22
23 select STDERR; $| = 1; 23 select STDERR; $| = 1;
24 select STDOUT; $| = 1; 24 select STDOUT; $| = 1;
25 25
26 my $t = Test::Nginx->new()->has(qw/http http_v2 fastcgi/); 26 my $t = Test::Nginx->new()->has(qw/http http_v2 fastcgi/)->plan(48);
27 27
28 $t->write_file_expand('nginx.conf', <<'EOF'); 28 $t->write_file_expand('nginx.conf', <<'EOF');
29 29
30 %%TEST_GLOBALS%% 30 %%TEST_GLOBALS%%
31 31
50 } 50 }
51 } 51 }
52 52
53 EOF 53 EOF
54 54
55 # suppress deprecation warning
56
57 open OLDERR, ">&", \*STDERR; close STDERR;
55 $t->run(); 58 $t->run();
56 $t->plan(48); 59 open STDERR, ">&", \*OLDERR;
57 60
58 ############################################################################### 61 ###############################################################################
59 62
60 # unbuffered request body to fastcgi 63 # unbuffered request body to fastcgi
61 64