# HG changeset patch # User Sergey Kandaurov # Date 1446816315 -10800 # Node ID ca2db52ae97f7e6fb0949f0435038184def7fd45 # Parent 9e00ab661e878f569e6e8efe2117fa673c222ddb Tests: fix and speed up h2.t tests by waiting for proper data. diff --git a/h2.t b/h2.t --- a/h2.t +++ b/h2.t @@ -2385,7 +2385,7 @@ h2_read($sess, all => [{ sid => $sid, le h2_read($sess, all => [{ sid => $sid2, fin => 0x4 }]); my $sid3 = new_stream($sess, { path => '/t2.html' }); -h2_read($sess, all => [{ sid => $sid2, fin => 0x4 }]); +h2_read($sess, all => [{ sid => $sid3, fin => 0x4 }]); h2_window($sess, 2**16, 1); h2_window($sess, 2**16, 3); @@ -2417,7 +2417,7 @@ h2_read($sess, all => [{ sid => $sid, le h2_read($sess, all => [{ sid => $sid2, fin => 0x4 }]); $sid3 = new_stream($sess, { path => '/t2.html' }); -h2_read($sess, all => [{ sid => $sid2, fin => 0x4 }]); +h2_read($sess, all => [{ sid => $sid3, fin => 0x4 }]); h2_window($sess, 2**16, 1); h2_window($sess, 2**16, 3); @@ -2694,7 +2694,7 @@ is($frame->{code}, 1, 'invalid PROXY - e { name => ':path', value => '/proxy2/', mode => 1 }, { name => ':authority', value => 'localhost', mode => 1 }, { name => 'x-foo', value => "x-bar\r\nreferer:see-this", mode => 2 }]}); -$frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); +$frames = h2_read($sess, all => [{ type => 'RST_STREAM' }]); # 10.3. Intermediary Encapsulation Attacks # An intermediary therefore cannot translate an HTTP/2 request or response