Mercurial > hg > nginx-tests
diff scgi_body.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 | dc2f8aac0553 |
children | d4a0232425ee |
line wrap: on
line diff
--- a/scgi_body.t Tue Jun 21 16:37:58 2016 +0300 +++ b/scgi_body.t Tue Jun 21 16:39:13 2016 +0300 @@ -38,11 +38,11 @@ %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:8080; + listen 127.0.0.1:%%PORT_0%%; server_name localhost; location / { - scgi_pass 127.0.0.1:8081; + scgi_pass 127.0.0.1:%%PORT_1%%; scgi_param SCGI 1; scgi_param REQUEST_URI $request_uri; } @@ -104,7 +104,7 @@ 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 ) @@ -119,7 +119,7 @@ $request->env->{CONTENT_LENGTH}); $request->connection()->print(<<EOF); -Location: http://127.0.0.1:8080/redirect +Location: http://localhost/redirect Content-Type: text/html X-Body: $body