Mercurial > hg > nginx-tests
comparison h2_proxy_request_buffering_redirect.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 | 5ac6efbe5552 |
children |
comparison
equal
deleted
inserted
replaced
1899:a0ee073760c5 | 1900:236d038dc04a |
---|---|
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 rewrite/)->plan(1); | 26 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite/)->plan(1); |
27 | 27 |
28 $t->write_file_expand('nginx.conf', <<'EOF')->run(); | 28 $t->write_file_expand('nginx.conf', <<'EOF'); |
29 | 29 |
30 %%TEST_GLOBALS%% | 30 %%TEST_GLOBALS%% |
31 | 31 |
32 daemon off; | 32 daemon off; |
33 | 33 |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 EOF | 69 EOF |
70 | 70 |
71 # suppress deprecation warning | |
72 | |
73 open OLDERR, ">&", \*STDERR; close STDERR; | |
74 $t->run(); | |
75 open STDERR, ">&", \*OLDERR; | |
76 | |
71 ############################################################################### | 77 ############################################################################### |
72 | 78 |
73 # unbuffered request body | 79 # unbuffered request body |
74 | 80 |
75 my $s = Test::Nginx::HTTP2->new(); | 81 my $s = Test::Nginx::HTTP2->new(); |