Mercurial > hg > nginx-tests
comparison grpc.t @ 1415:01d806268a12
Tests: removed TODOs for gRPC fixes merged in 1.14.2.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 11 Dec 2018 18:59:31 +0300 |
parents | 2c0955286894 |
children | 144c6ce732e4 |
comparison
equal
deleted
inserted
replaced
1414:f5b18471e17a | 1415:01d806268a12 |
---|---|
188 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; | 188 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; |
189 ok($c = $frame->{headers}{'x-connection'}, 'keepalive 2 - connection'); | 189 ok($c = $frame->{headers}{'x-connection'}, 'keepalive 2 - connection'); |
190 | 190 |
191 $frames = $f->{http_start}('/KeepAlive', reuse => 1); | 191 $frames = $f->{http_start}('/KeepAlive', reuse => 1); |
192 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; | 192 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; |
193 | |
194 TODO: { | |
195 local $TODO = 'not yet' unless $t->has_version('1.15.4'); | |
196 | |
197 ok($frame, 'upstream keepalive reused'); | 193 ok($frame, 'upstream keepalive reused'); |
198 | 194 |
199 } | |
200 | |
201 TODO: { | |
202 todo_skip 'upstream connection failed', 2 unless $frame; | |
203 | |
204 cmp_ok($frame->{sid}, '>', $sid, 'keepalive 2 - HEADERS sid next'); | 195 cmp_ok($frame->{sid}, '>', $sid, 'keepalive 2 - HEADERS sid next'); |
205 $f->{data}('Hello'); | 196 $f->{data}('Hello'); |
206 $frames = $f->{http_end}(); | 197 $frames = $f->{http_end}(); |
207 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; | 198 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; |
208 is($frame->{headers}{'x-connection'}, $c, 'keepalive 2 - connection reuse'); | 199 is($frame->{headers}{'x-connection'}, $c, 'keepalive 2 - connection reuse'); |
209 | |
210 } | |
211 | 200 |
212 undef $f; | 201 undef $f; |
213 # don't bother with a new instance until the old one is over | 202 # don't bother with a new instance until the old one is over |
214 select undef, undef, undef, 0.2 unless $t->has_version('1.15.4'); | 203 select undef, undef, undef, 0.2 unless $t->has_version('1.15.4'); |
215 $f = grpc(); | 204 $f = grpc(); |