Mercurial > hg > nginx-tests
diff http_host.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 | d5bf5942a8b2 |
children | 882267679006 |
line wrap: on
line diff
--- a/http_host.t Tue Jun 21 16:37:58 2016 +0300 +++ b/http_host.t Tue Jun 21 16:39:13 2016 +0300 @@ -37,7 +37,7 @@ %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:8080; + listen 127.0.0.1:%%PORT_0%%; server_name localhost; location / { @@ -55,7 +55,7 @@ is(http_host_header('www.abcd-ef.g02.xyz'), 'www.abcd-ef.g02.xyz', 'domain w/o port (host header)'); -is(http_host_header('abcd-ef.g02.xyz:8080'), 'abcd-ef.g02.xyz', +is(http_host_header('abcd-ef.g02.xyz:' . port(0)), 'abcd-ef.g02.xyz', 'domain w/port (host header)'); is(http_absolute_path('abcd-ef.g02.xyz'), 'abcd-ef.g02.xyz',