comparison h2_keepalive.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 3366128e526b
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/) 28 my $t = Test::Nginx->new()->has(qw/http http_v2/)->plan(19)
29 ->write_file_expand('nginx.conf', <<'EOF'); 29 ->write_file_expand('nginx.conf', <<'EOF');
30 30
31 %%TEST_GLOBALS%% 31 %%TEST_GLOBALS%%
32 32
33 daemon off; 33 daemon off;
71 EOF 71 EOF
72 72
73 $t->write_file('index.html', 'SEE-THAT' x 50000); 73 $t->write_file('index.html', 'SEE-THAT' x 50000);
74 $t->write_file('t.html', 'SEE-THAT'); 74 $t->write_file('t.html', 'SEE-THAT');
75 75
76 $t->run()->plan(19); 76 # suppress deprecation warning
77
78 open OLDERR, ">&", \*STDERR; close STDERR;
79 $t->run();
80 open STDERR, ">&", \*OLDERR;
77 81
78 ############################################################################### 82 ###############################################################################
79 83
80 my $s = Test::Nginx::HTTP2->new(); 84 my $s = Test::Nginx::HTTP2->new();
81 85