Mercurial > hg > nginx-tests
changeset 1301:d6382e557fc0
Tests: allow to wait reading unspecified HTTP/2 stream ID.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 19 Mar 2018 12:51:37 +0300 |
parents | 940e04c58a79 |
children | beed8146d045 |
files | lib/Test/Nginx/HTTP2.pm |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/Test/Nginx/HTTP2.pm Mon Mar 19 12:51:35 2018 +0300 +++ b/lib/Test/Nginx/HTTP2.pm Mon Mar 19 12:51:37 2018 +0300 @@ -360,7 +360,8 @@ # wait for the fin flag @test = grep { !(defined $_->{fin} - && $_->{sid} == $frame->{sid} && $_->{fin} & $frame->{flags}) + && (!defined $_->{sid} || $_->{sid} == $frame->{sid}) + && $_->{fin} & $frame->{flags}) } @test if defined $frame->{flags}; # wait for the specified frame