Mercurial > hg > nginx-tests
changeset 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 | 6f573329e862 |
children | da1325cb1c39 |
files | grpc.t |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/grpc.t Mon Nov 30 20:53:12 2020 +0300 +++ b/grpc.t Mon Nov 30 21:32:20 2020 +0000 @@ -514,6 +514,9 @@ (undef, $frame) = grep { $_->{type} eq "HEADERS" } @$frames; is($frame->{flags}, undef, 'discard CANCEL - no trailers'); +undef $f; +$f = grpc(); + # upstream keepalive, grpc error # receiving END_STREAM followed by RST_STREAM NO_ERROR