Mercurial > hg > nginx-tests
comparison grpc.t @ 1631:62a1667f60f8
Tests: fixed grpc.t after previous change.
In rare cases, "grpc error" test results could contain confusing frames
from a previous connection. The fix is to restart with a new connection.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 30 Nov 2020 21:32:20 +0000 |
parents | 81fd6615358e |
children | 259dfb223f9a |
comparison
equal
deleted
inserted
replaced
1630:6f573329e862 | 1631:62a1667f60f8 |
---|---|
511 | 511 |
512 $f->{http_start}('/Discard_CNL'); | 512 $f->{http_start}('/Discard_CNL'); |
513 $frames = $f->{discard}(); | 513 $frames = $f->{discard}(); |
514 (undef, $frame) = grep { $_->{type} eq "HEADERS" } @$frames; | 514 (undef, $frame) = grep { $_->{type} eq "HEADERS" } @$frames; |
515 is($frame->{flags}, undef, 'discard CANCEL - no trailers'); | 515 is($frame->{flags}, undef, 'discard CANCEL - no trailers'); |
516 | |
517 undef $f; | |
518 $f = grpc(); | |
516 | 519 |
517 # upstream keepalive, grpc error | 520 # upstream keepalive, grpc error |
518 # receiving END_STREAM followed by RST_STREAM NO_ERROR | 521 # receiving END_STREAM followed by RST_STREAM NO_ERROR |
519 | 522 |
520 $f->{http_start}('/KeepAlive'); | 523 $f->{http_start}('/KeepAlive'); |