# HG changeset patch # User Sergey Kandaurov # Date 1497937316 -10800 # Node ID 39cfdf581253ae91fdd3127e8407becf865aee79 # Parent ae3a46305e383f730c7cd6c3f78ba97a6f7269d5 Tests: fixed CONTINUATION test in h2_trailers.t. diff --git a/h2_trailers.t b/h2_trailers.t --- 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');