comparison h2_server_push.t @ 1381:97c8280de681

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 08 Oct 2018 15:30:39 +0300
parents 8cb66a4d3ca2
children 144c6ce732e4
comparison
equal deleted inserted replaced
1380:f50c7d90f5c9 1381:97c8280de681
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 rewrite gzip/) 26 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite gzip/)->plan(42)
27 ->write_file_expand('nginx.conf', <<'EOF'); 27 ->write_file_expand('nginx.conf', <<'EOF');
28 28
29 %%TEST_GLOBALS%% 29 %%TEST_GLOBALS%%
30 30
31 daemon off; 31 daemon off;
132 132
133 $t->write_file('t1', join('', map { sprintf "X%04dXXX", $_ } (1 .. 8202))); 133 $t->write_file('t1', join('', map { sprintf "X%04dXXX", $_ } (1 .. 8202)));
134 $t->write_file('t2', 'SEE-THIS'); 134 $t->write_file('t2', 'SEE-THIS');
135 $t->write_file('explf', join('', map { sprintf "X%06dXXX", $_ } (1 .. 6553))); 135 $t->write_file('explf', join('', map { sprintf "X%06dXXX", $_ } (1 .. 6553)));
136 136
137 $t->try_run('no http2_push')->plan(42); 137 $t->run();
138 138
139 ############################################################################### 139 ###############################################################################
140 140
141 # 6.6. PUSH_PROMISE 141 # 6.6. PUSH_PROMISE
142 # PUSH_PROMISE frames MUST only be sent on a peer-initiated stream that 142 # PUSH_PROMISE frames MUST only be sent on a peer-initiated stream that