comparison h2_proxy_protocol.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 a0ee073760c5
children
comparison
equal deleted inserted replaced
1899:a0ee073760c5 1900:236d038dc04a
52 } 52 }
53 53
54 EOF 54 EOF
55 55
56 $t->write_file('t.html', 'SEE-THIS'); 56 $t->write_file('t.html', 'SEE-THIS');
57
58 # suppress deprecation warning
59
60 open OLDERR, ">&", \*STDERR; close STDERR;
57 $t->run(); 61 $t->run();
62 open STDERR, ">&", \*OLDERR;
58 63
59 ############################################################################### 64 ###############################################################################
60 65
61 my $proxy = 'PROXY TCP4 192.0.2.1 192.0.2.2 1234 5678' . CRLF; 66 my $proxy = 'PROXY TCP4 192.0.2.1 192.0.2.2 1234 5678' . CRLF;
62 my $s = Test::Nginx::HTTP2->new(port(8080), proxy => $proxy); 67 my $s = Test::Nginx::HTTP2->new(port(8080), proxy => $proxy);