changeset 1108:ff1a37f37419

Tests: removed seemingly useless and unsafe HTTP/2 RST_STREAM test.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 10 Jan 2017 14:56:57 +0300
parents d42cc683970d
children 59d5c8ca7e4d
files h2.t
diffstat 1 files changed, 1 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/h2.t
+++ b/h2.t
@@ -26,7 +26,7 @@ select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite charset gzip/)
-	->plan(141);
+	->plan(140);
 
 $t->write_file_expand('nginx.conf', <<'EOF');
 
@@ -811,25 +811,6 @@ ok(!grep ({ $_->{type} eq "PING" } @$fra
 
 }
 
-# stream with large response queued on write - RST_STREAM handling
-
-$s = Test::Nginx::HTTP2->new();
-$sid = $s->new_stream({ path => '/tbig.html' });
-
-$s->h2_window(2**30, $sid);
-$s->h2_window(2**30);
-
-select undef, undef, undef, 0.4;
-
-$s->h2_rst($sid, 8);
-$s->read(all => [{ sid => $sid, fin => 1 }], wait => 0.2);
-
-$sid = $s->new_stream();
-$frames = $s->read(all => [{ sid => $sid, fin => 1 }]);
-
-($frame) = grep { $_->{type} eq "HEADERS" } @$frames;
-is($frame->{sid}, 3, 'large response - queued with RST_STREAM');
-
 # SETTINGS_MAX_FRAME_SIZE
 
 $s = Test::Nginx::HTTP2->new();