Mercurial > hg > nginx-tests
diff proxy_chunked.t @ 974:882267679006
Tests: simplified parallel modifications in tests.
Mail tests were simplified in c227348453db.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 12 Jul 2016 17:39:03 +0300 |
parents | e9064d691790 |
children |
line wrap: on
line diff
--- a/proxy_chunked.t Sun Jul 10 18:57:12 2016 +0300 +++ b/proxy_chunked.t Tue Jul 12 17:39:03 2016 +0300 @@ -40,15 +40,15 @@ %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:%%PORT_0%%; + listen 127.0.0.1:8080; server_name localhost; location / { - proxy_pass http://127.0.0.1:%%PORT_1%%; + proxy_pass http://127.0.0.1:8081; proxy_read_timeout 1s; } location /nobuffering { - proxy_pass http://127.0.0.1:%%PORT_1%%; + proxy_pass http://127.0.0.1:8081; proxy_read_timeout 1s; proxy_buffering off; } @@ -64,7 +64,7 @@ '<!--#include virtual="/" set="one" --><!--#echo var="one" -->'); $t->run_daemon(\&http_chunked_daemon); -$t->run()->waitforsocket('127.0.0.1:' . port(1)); +$t->run()->waitforsocket('127.0.0.1:' . port(8081)); ############################################################################### @@ -77,7 +77,7 @@ sub http_chunked_daemon { my $server = IO::Socket::INET->new( Proto => 'tcp', - LocalAddr => '127.0.0.1:' . port(1), + LocalAddr => '127.0.0.1:' . port(8081), Listen => 5, Reuse => 1 )