Mercurial > hg > nginx-tests
diff h2_proxy_request_buffering.t @ 903:29aa547dd963
Tests: avoided potential hang in HTTP/2 unbuf request body tests.
Made sure to close client connections.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 19 Apr 2016 14:26:04 +0300 |
parents | 127a602f36c8 |
children | cb8438c28482 |
line wrap: on
line diff
--- a/h2_proxy_request_buffering.t +++ b/h2_proxy_request_buffering.t @@ -61,14 +61,14 @@ EOF $t->run(); -plan(skip_all => 'no unbuffered request body') unless get_body('/chunked'); +my $f = get_body('/chunked'); +plan(skip_all => 'no unbuffered request body') unless $f; +$f->{http_end}(); $t->plan(48); ############################################################################### -my ($f); - # unbuffered request body $f = get_body('/', 'content-length' => 10);