# HG changeset patch # User Sergey Kandaurov # Date 1469101426 -10800 # Node ID eb49d29d5447e0e75926beb8850b4a93c96d4d0d # Parent 98546e08521f7e13d0bbeaa5a3c5f5feefac6d36 Tests: redo 892737e9fd31 without flaky send_timeout adjustments. The GOAWAY tests were moved closer to server shutdown to not step over an unrelated test delay. diff --git a/h2.t b/h2.t --- a/h2.t +++ b/h2.t @@ -135,7 +135,7 @@ http { listen 127.0.0.1:8086 http2; server_name localhost; - send_timeout 2s; + send_timeout 1s; } server { @@ -834,7 +834,7 @@ is($frame->{headers}->{':status'}, 200, $s->h2_window(2**30, $sid); $s->h2_window(2**30); -select undef, undef, undef, 2.5; +select undef, undef, undef, 2.1; $s->h2_ping('SEE-THIS'); @@ -1066,14 +1066,6 @@ Test::Nginx::HTTP2->new()->new_stream({ ($frame) = grep { $_->{type} eq "PING" } @$frames; is($frame->{value}, 'SEE-THIS', 'unknown frame type'); -# GOAWAY - force closing a connection by server with idle or active streams - -$sid = $s->new_stream(); -$s->read(all => [{ sid => $sid, fin => 1 }]); - -my $active = Test::Nginx::HTTP2->new(port(8086)); -$active->new_stream({ path => '/tbig.html' }); - # graceful shutdown with stream waiting on HEADERS payload my $grace = Test::Nginx::HTTP2->new(port(8084)); @@ -1100,6 +1092,14 @@ my $grace4 = Test::Nginx::HTTP2->new(por select undef, undef, undef, 1.1; undef $grace4; +# GOAWAY - force closing a connection by server with idle or active streams + +$sid = $s->new_stream(); +$s->read(all => [{ sid => $sid, fin => 1 }]); + +my $active = Test::Nginx::HTTP2->new(port(8086)); +$active->new_stream({ path => '/tbig.html' }); + $t->stop(); $frames = $s->read(all => [{ type => 'GOAWAY' }]);