Mercurial > hg > nginx-tests
comparison h2_request_body.t @ 945:d73bef563aea
Tests: speed up HTTP/2 tests.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 15 Jun 2016 13:27:56 +0300 |
parents | 323ebf087121 |
children | 4dc302d8e04f |
comparison
equal
deleted
inserted
replaced
944:235f796c2861 | 945:d73bef563aea |
---|---|
153 TODO: { | 153 TODO: { |
154 local $TODO = 'not yet'; | 154 local $TODO = 'not yet'; |
155 | 155 |
156 $sess = new_session(); | 156 $sess = new_session(); |
157 $sid = new_stream($sess, { body_more => 1 }); | 157 $sid = new_stream($sess, { body_more => 1 }); |
158 $frames = h2_read($sess, all => [{ type => 'RST_STREAM' }]); | 158 $frames = h2_read($sess, all => [{ type => 'RST_STREAM' }], wait => 0.5); |
159 | 159 |
160 ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; | 160 ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; |
161 is($frame->{code}, 0, 'request body discarded - zero RST_STREAM'); | 161 is($frame->{code}, 0, 'request body discarded - zero RST_STREAM'); |
162 | 162 |
163 } | 163 } |