Mercurial > hg > nginx-tests
diff scgi_merge_params.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 | 2cd00179f4b2 |
children | d4a0232425ee |
line wrap: on
line diff
--- a/scgi_merge_params.t +++ b/scgi_merge_params.t @@ -46,22 +46,22 @@ http { scgi_param HTTP_X_BLAH "blah"; server { - listen 127.0.0.1:8080; + listen 127.0.0.1:%%PORT_0%%; server_name localhost; scgi_cache NAME; location / { - scgi_pass 127.0.0.1:8081; + scgi_pass 127.0.0.1:%%PORT_1%%; } location /no/ { - scgi_pass 127.0.0.1:8081; + scgi_pass 127.0.0.1:%%PORT_1%%; scgi_cache off; } location /custom/ { - scgi_pass 127.0.0.1:8081; + scgi_pass 127.0.0.1:%%PORT_1%%; scgi_param SCGI 1; scgi_param HTTP_X_BLAH "custom"; } @@ -115,7 +115,7 @@ EOF sub scgi_daemon { my $server = IO::Socket::INET->new( Proto => 'tcp', - LocalHost => '127.0.0.1:8081', + LocalHost => '127.0.0.1:' . port(1), Listen => 5, Reuse => 1 ) @@ -133,7 +133,7 @@ sub scgi_daemon { my $blah = $request->env->{HTTP_X_BLAH} || ''; $request->connection()->print(<<EOF); -Location: http://127.0.0.1:8080/redirect +Location: http://localhost/redirect Content-Type: text/html ims=$ims;iums=$iums;blah=$blah;