Mercurial > hg > nginx-tests
diff proxy_keepalive.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_keepalive.t +++ b/proxy_keepalive.t @@ -38,12 +38,12 @@ http { %%TEST_GLOBALS_HTTP%% upstream backend { - server 127.0.0.1:%%PORT_1%%; + server 127.0.0.1:8081; keepalive 1; } server { - listen 127.0.0.1:%%PORT_0%%; + listen 127.0.0.1:8080; server_name localhost; proxy_http_version 1.1; @@ -74,7 +74,7 @@ EOF $t->run_daemon(\&http_daemon); $t->run(); -$t->waitforsocket('127.0.0.1:' . port(1)) +$t->waitforsocket('127.0.0.1:' . port(8081)) or die "Can't start test backend"; ############################################################################### @@ -215,7 +215,7 @@ like(`grep -F '[error]' ${\($t->testdir( sub http_daemon { my $server = IO::Socket::INET->new( Proto => 'tcp', - LocalHost => '127.0.0.1:' . port(1), + LocalHost => '127.0.0.1:' . port(8081), Listen => 5, Reuse => 1 )