Mercurial > hg > nginx-tests
changeset 1355:afe541649054
Tests: fixed realip.t with parallel tests.
Testing $server_port to be 8081 as added in c0075a0a2ba9 is wrong,
since with parallel tests real port number may be different.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 05 Jul 2018 22:19:17 +0300 |
parents | c0075a0a2ba9 |
children | ca6fe31f74c4 |
files | realip.t |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/realip.t Wed Jul 04 23:46:29 2018 +0300 +++ b/realip.t Thu Jul 05 22:19:17 2018 +0300 @@ -41,13 +41,8 @@ server { listen 127.0.0.1:8080; - listen 127.0.0.1:8081; server_name localhost; - if ($server_port = 8081) { - return 204; - } - location / { } location /custom { real_ip_header X-Real-IP-Custom; @@ -63,6 +58,13 @@ real_ip_recursive on; } } + + server { + listen 127.0.0.1:8081; + server_name localhost; + + return 204; + } } EOF