Mercurial > hg > nginx-tests
comparison h2_limit_req.t @ 941:ee4a4b42d65f
Tests: assorted fixes in previous change.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 06 Jun 2016 19:35:21 +0300 |
parents | 12e0fb96c2dd |
children | 4dc302d8e04f |
comparison
equal
deleted
inserted
replaced
940:12e0fb96c2dd | 941:ee4a4b42d65f |
---|---|
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(6); | 27 ->plan(7); |
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 |
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 | 173 |
174 select undef, undef, undef, 1.1; | 174 select undef, undef, undef, 1.1; |
175 undef $sess; | 175 close $sess->{socket}; |
176 | |
177 pass('discard body - limit req - eof'); | |
176 | 178 |
177 } | 179 } |
178 | 180 |
179 } | 181 } |
180 | 182 |