Mercurial > hg > nginx-tests
diff limit_conn.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 | f4189a38c3a4 |
children | 882267679006 |
line wrap: on
line diff
--- a/limit_conn.t +++ b/limit_conn.t @@ -42,7 +42,7 @@ http { limit_conn_zone $binary_remote_addr zone=custom:1m; server { - listen 127.0.0.1:8081; + listen 127.0.0.1:%%PORT_1%%; server_name localhost; location /w { @@ -51,11 +51,11 @@ http { } 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%%; limit_conn zone 1; } @@ -72,7 +72,7 @@ http { } location /custom { - proxy_pass http://127.0.0.1:8081/; + proxy_pass http://127.0.0.1:%%PORT_1%%/; limit_conn_log_level info; limit_conn_status 501; limit_conn custom 1;