Mercurial > hg > nginx-tests
comparison h2_limit_req.t @ 940:12e0fb96c2dd
Tests: removed unwanted client read from h2_limit_req.t.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 06 Jun 2016 12:45:45 +0300 |
parents | 9045591d4304 |
children | ee4a4b42d65f |
comparison
equal
deleted
inserted
replaced
939:cfddaf316233 | 940:12e0fb96c2dd |
---|---|
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 limit_req/) | 26 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite limit_req/) |
27 ->plan(7); | 27 ->plan(6); |
28 | 28 |
29 $t->todo_alerts() unless $t->has_version('1.9.14'); | 29 $t->todo_alerts() unless $t->has_version('1.9.14'); |
30 | 30 |
31 $t->write_file_expand('nginx.conf', <<'EOF'); | 31 $t->write_file_expand('nginx.conf', <<'EOF'); |
32 | 32 |
168 or $t->has_version('1.9.12'); | 168 or $t->has_version('1.9.12'); |
169 | 169 |
170 $sess = new_session(); | 170 $sess = new_session(); |
171 $sid = new_stream($sess, { path => '/limit_req', body => 'TEST', split => [61], | 171 $sid = new_stream($sess, { path => '/limit_req', body => 'TEST', split => [61], |
172 abort => 1 }); | 172 abort => 1 }); |
173 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); | |
174 | |
175 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; | |
176 is($frame->{headers}->{':status'}, '200', 'discard body - limit req - eof'); | |
177 | 173 |
178 select undef, undef, undef, 1.1; | 174 select undef, undef, undef, 1.1; |
179 undef $sess; | 175 undef $sess; |
180 | 176 |
181 } | 177 } |