Mercurial > hg > nginx-tests
diff lib/Test/Nginx/HTTP2.pm @ 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 | 6404fd77f367 |
line wrap: on
line diff
--- a/lib/Test/Nginx/HTTP2.pm +++ b/lib/Test/Nginx/HTTP2.pm @@ -360,7 +360,8 @@ sub test_fin { # 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