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
+++ b/h2_trailers.t
@@ -109,8 +109,7 @@ is($frame->{flags}, 5, 'no data - traile
 
 $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');