# HG changeset patch # User Sergey Kandaurov # Date 1496774469 -10800 # Node ID 368ab1d8ed8bb6b14ccdccf9ad310d52a5730a30 # Parent 89b4bdd1346afc672524a21987d368e846dca2ca 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. diff --git a/h2.t b/h2.t --- a/h2.t +++ b/h2.t @@ -893,13 +893,14 @@ local $TODO = 'not yet' unless $t->has_v $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'); }