Mercurial > hg > nginx-tests
diff proxy_cache_lock_age.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 | 239ade56c015 |
children | 882267679006 |
line wrap: on
line diff
--- a/proxy_cache_lock_age.t +++ b/proxy_cache_lock_age.t @@ -41,11 +41,11 @@ http { keys_zone=NAME:1m; server { - listen 127.0.0.1:8080; + listen 127.0.0.1:%%PORT_0%%; server_name localhost; location / { - proxy_pass http://127.0.0.1:8081; + proxy_pass http://127.0.0.1:%%PORT_1%%; proxy_cache NAME; proxy_cache_lock on; @@ -56,8 +56,8 @@ http { EOF -$t->run_daemon(\&http_daemon, 8081); -$t->run()->waitforsocket('127.0.0.1:8081'); +$t->run_daemon(\&http_daemon, port(1)); +$t->run()->waitforsocket('127.0.0.1:' . port(1)); ###############################################################################