diff h2.t @ 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 c99c1f43cb15
line wrap: on
line diff
--- 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');
 
 }