Mercurial > hg > nginx-tests
diff proxy_chunked.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 | f02dac68d584 |
children | 882267679006 |
line wrap: on
line diff
--- a/proxy_chunked.t +++ b/proxy_chunked.t @@ -40,15 +40,15 @@ http { %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:8080; + listen 127.0.0.1:%%PORT_0%%; server_name localhost; location / { - proxy_pass http://127.0.0.1:8081; + proxy_pass http://127.0.0.1:%%PORT_1%%; proxy_read_timeout 1s; } location /nobuffering { - proxy_pass http://127.0.0.1:8081; + proxy_pass http://127.0.0.1:%%PORT_1%%; proxy_read_timeout 1s; proxy_buffering off; } @@ -64,7 +64,7 @@ EOF '<!--#include virtual="/" set="one" --><!--#echo var="one" -->'); $t->run_daemon(\&http_chunked_daemon); -$t->run()->waitforsocket('127.0.0.1:8081'); +$t->run()->waitforsocket('127.0.0.1:' . port(1)); ############################################################################### @@ -77,7 +77,7 @@ like(http_get('/inmemory.html'), qr/\x0d sub http_chunked_daemon { my $server = IO::Socket::INET->new( Proto => 'tcp', - LocalAddr => '127.0.0.1:8081', + LocalAddr => '127.0.0.1:' . port(1), Listen => 5, Reuse => 1 )