Mercurial > hg > nginx-tests
comparison h2_trailers.t @ 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 | 97c8280de681 |
comparison
equal
deleted
inserted
replaced
1193:ae3a46305e38 | 1194:39cfdf581253 |
---|---|
107 | 107 |
108 # CONTINUATION in response trailers | 108 # CONTINUATION in response trailers |
109 | 109 |
110 $s = Test::Nginx::HTTP2->new(); | 110 $s = Test::Nginx::HTTP2->new(); |
111 $sid = $s->new_stream({ path => '/continuation?h=' . 'x' x 2**12 }); | 111 $sid = $s->new_stream({ path => '/continuation?h=' . 'x' x 2**12 }); |
112 $frames = $s->read(all => [{ sid => $sid, fin => 0x4 }]); | 112 $frames = $s->read(all => [{ sid => $sid, type => 'CONTINUATION' }]); |
113 push @$frames, @{$s->read(all => [{ sid => $sid, fin => 0x4 }])}; | |
114 @$frames = grep { $_->{type} =~ "HEADERS|CONTINUATION|DATA" } @$frames; | 113 @$frames = grep { $_->{type} =~ "HEADERS|CONTINUATION|DATA" } @$frames; |
115 | 114 |
116 is(@$frames, 4, 'continuation - frames'); | 115 is(@$frames, 4, 'continuation - frames'); |
117 | 116 |
118 $frame = shift @$frames; | 117 $frame = shift @$frames; |