changeset 990:eb49d29d5447

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 21 Jul 2016 14:43:46 +0300
parents 98546e08521f
children 6246d69857cc
files h2.t
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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' }]);