# HG changeset patch # User Sergey Kandaurov # Date 1441109589 -10800 # Node ID 1f34870e9538009b5e0624a1368db3b954a80d7d # Parent 0247e314e99190b136f670f25ba8b0f7ca315067 Tests: removed TODOs for now passing HTTP/2 RST_STREAM tests. This chases the latest HTTP/2 patch update with improved error handling. diff --git a/h2.t b/h2.t --- a/h2.t +++ b/h2.t @@ -1373,14 +1373,9 @@ is($frame->{headers}->{':status'}, 200, $sid2 = new_stream($sess, { path => '/t3.html' }); $frames = h2_read($sess, all => [{ sid => $sid2, fin => 0 }]); -TODO: { -local $TODO = 'not yet'; - ($frame) = grep { $_->{type} eq "HEADERS" && $_->{sid} == $sid2 } @$frames; is($frame->{headers}->{':status'}, 200, 'RST_STREAM 2'); -} - # http2_max_concurrent_streams $sess = new_session(8086); @@ -1403,17 +1398,12 @@ is($frame->{headers}->{':status'}, 200, ($frame) = grep { $_->{type} eq "HEADERS" && $_->{sid} == $sid2 } @$frames; isnt($frame->{headers}->{':status'}, 200, 'http2_max_concurrent_streams 2'); -TODO: { -local $TODO = 'not yet'; - ($frame) = grep { $_->{type} eq "RST_STREAM" && $_->{sid} == $sid2 } @$frames; is($frame->{sid}, $sid2, 'http2_max_concurrent_streams RST_STREAM sid'); is($frame->{length}, 4, 'http2_max_concurrent_streams RST_STREAM length'); is($frame->{flags}, 0, 'http2_max_concurrent_streams RST_STREAM flags'); is($frame->{code}, 7, 'http2_max_concurrent_streams RST_STREAM code'); -} - h2_window($sess, 2**16, $sid); h2_read($sess, all => [{ sid => $sid, fin => 1 }]);