Mercurial > hg > nginx-tests
changeset 779:ca2db52ae97f
Tests: fix and speed up h2.t tests by waiting for proper data.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 06 Nov 2015 16:25:15 +0300 |
parents | 9e00ab661e87 |
children | 5a0bba53854b |
files | h2.t |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/h2.t Thu Nov 05 20:09:47 2015 +0300 +++ b/h2.t Fri Nov 06 16:25:15 2015 +0300 @@ -2385,7 +2385,7 @@ 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 => $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 @@ { 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