Mercurial > hg > nginx-tests
comparison h2.t @ 1251:766bcbb632ee
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 24 Nov 2017 19:58:40 +0300 |
parents | c99c1f43cb15 |
children | 01010d9021b8 |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
1115 select undef, undef, undef, 1.1; | 1115 select undef, undef, undef, 1.1; |
1116 undef $grace4; | 1116 undef $grace4; |
1117 | 1117 |
1118 # GOAWAY without awaiting active streams, further streams ignored | 1118 # GOAWAY without awaiting active streams, further streams ignored |
1119 | 1119 |
1120 TODO: { | |
1121 local $TODO = 'not yet' unless $t->has_version('1.11.6'); | |
1122 | |
1123 $s = Test::Nginx::HTTP2->new(port(8080)); | 1120 $s = Test::Nginx::HTTP2->new(port(8080)); |
1124 $sid = $s->new_stream({ path => '/t1.html' }); | 1121 $sid = $s->new_stream({ path => '/t1.html' }); |
1125 $s->read(all => [{ sid => $sid, length => 2**16 - 1 }]); | 1122 $s->read(all => [{ sid => $sid, length => 2**16 - 1 }]); |
1126 | 1123 |
1127 $t->reload(); | 1124 $t->reload(); |
1134 $sid2 = $s->new_stream(); | 1131 $sid2 = $s->new_stream(); |
1135 $frames = $s->read(all => [{ sid => $sid2, fin => 0x4 }], wait => 0.5); | 1132 $frames = $s->read(all => [{ sid => $sid2, fin => 0x4 }], wait => 0.5); |
1136 | 1133 |
1137 ($frame) = grep { $_->{type} eq 'HEADERS' } @$frames; | 1134 ($frame) = grep { $_->{type} eq 'HEADERS' } @$frames; |
1138 is($frame, undef, 'GOAWAY with active stream - no new stream'); | 1135 is($frame, undef, 'GOAWAY with active stream - no new stream'); |
1139 | |
1140 } | |
1141 | 1136 |
1142 $s->h2_window(100, $sid); | 1137 $s->h2_window(100, $sid); |
1143 $s->h2_window(100); | 1138 $s->h2_window(100); |
1144 $frames = $s->read(all => [{ sid => $sid, fin => 0x1 }]); | 1139 $frames = $s->read(all => [{ sid => $sid, fin => 0x1 }]); |
1145 | 1140 |