Mercurial > hg > nginx-tests
changeset 1194:39cfdf581253
Tests: fixed CONTINUATION test in h2_trailers.t.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 20 Jun 2017 08:41:56 +0300 |
parents | ae3a46305e38 |
children | af7feabed82a |
files | h2_trailers.t |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h2_trailers.t Mon Jun 19 17:10:59 2017 +0300 +++ b/h2_trailers.t Tue Jun 20 08:41:56 2017 +0300 @@ -109,8 +109,7 @@ $s = Test::Nginx::HTTP2->new(); $sid = $s->new_stream({ path => '/continuation?h=' . 'x' x 2**12 }); -$frames = $s->read(all => [{ sid => $sid, fin => 0x4 }]); -push @$frames, @{$s->read(all => [{ sid => $sid, fin => 0x4 }])}; +$frames = $s->read(all => [{ sid => $sid, type => 'CONTINUATION' }]); @$frames = grep { $_->{type} =~ "HEADERS|CONTINUATION|DATA" } @$frames; is(@$frames, 4, 'continuation - frames');