Mercurial > hg > nginx-tests
comparison h2_request_body_preread.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 | c9d7e2a26b2d |
children | 11463d379570 |
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 proxy limit_req/); | 26 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy limit_req/)->plan(9); |
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 |
87 } | 87 } |
88 | 88 |
89 EOF | 89 EOF |
90 | 90 |
91 $t->write_file('t', ''); | 91 $t->write_file('t', ''); |
92 $t->run()->plan(9); | 92 |
93 # suppress deprecation warning | |
94 | |
95 open OLDERR, ">&", \*STDERR; close STDERR; | |
96 $t->run(); | |
97 open STDERR, ">&", \*OLDERR; | |
93 | 98 |
94 ############################################################################### | 99 ############################################################################### |
95 | 100 |
96 # request body within preread size (that is, stream window) | 101 # request body within preread size (that is, stream window) |
97 | 102 |