Mercurial > hg > nginx-tests
diff h2_proxy_request_buffering.t @ 952:e9064d691790
Tests: converted tests to run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:39:13 +0300 |
parents | 4dc302d8e04f |
children | 882267679006 |
line wrap: on
line diff
--- a/h2_proxy_request_buffering.t +++ b/h2_proxy_request_buffering.t @@ -40,18 +40,18 @@ http { %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:8080 http2; + listen 127.0.0.1:%%PORT_0%% http2; server_name localhost; location / { proxy_request_buffering off; - proxy_pass http://127.0.0.1:8081/; + proxy_pass http://127.0.0.1:%%PORT_1%%/; client_body_buffer_size 1k; } location /chunked { proxy_request_buffering off; proxy_http_version 1.1; - proxy_pass http://127.0.0.1:8081/; + proxy_pass http://127.0.0.1:%%PORT_1%%/; client_body_buffer_size 1k; } } @@ -169,7 +169,7 @@ sub get_body { $server = IO::Socket::INET->new( Proto => 'tcp', LocalHost => '127.0.0.1', - LocalPort => 8081, + LocalPort => port(1), Listen => 5, Timeout => 3, Reuse => 1