# HG changeset patch # User Maxim Dounin # Date 1530818357 -10800 # Node ID afe5416490545c0a8c1fccbc3f0c87808442ead8 # Parent c0075a0a2ba90f0c1aa7db15052f63db0822349c 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. diff --git a/realip.t b/realip.t --- a/realip.t +++ b/realip.t @@ -41,13 +41,8 @@ http { 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 @@ http { real_ip_recursive on; } } + + server { + listen 127.0.0.1:8081; + server_name localhost; + + return 204; + } } EOF