Mercurial > hg > nginx-tests
changeset 1185:368ab1d8ed8b
Tests: unbreak h2.t with aio.
Postpone sending client's SETTINGS until after server exhausted stream window,
so the expected result does not depend on the time when SETTINGS was applied.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 06 Jun 2017 21:41:09 +0300 |
parents | 89b4bdd1346a |
children | 0352ed25af20 |
files | h2.t |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h2.t Tue Jun 06 18:42:35 2017 +0300 +++ b/h2.t Tue Jun 06 21:41:09 2017 +0300 @@ -893,13 +893,14 @@ $s->h2_settings(0, 0x4 => 42); $sid = $s->new_stream({ path => '/frame_size/t1.html' }); +$s->read(all => [{ sid => $sid, length => 42 }]); $s->h2_settings(0, 0x4 => 2**17, 0x5 => 2**15); $frames = $s->read(all => [{ sid => $sid, fin => 1 }]); @data = grep { $_->{type} eq "DATA" } @$frames; $lengths = join ' ', map { $_->{length} } @data; -is($lengths, '42 32768 32768 38', 'multiple SETTINGS'); +is($lengths, '32768 32768 38', 'multiple SETTINGS'); }