Skip to content

Commit 3f88b47

Browse files
committed
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.
1 parent 14b7e5b commit 3f88b47

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

realip.t

+7-5
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,8 @@ http {
4141
4242
server {
4343
listen 127.0.0.1:8080;
44-
listen 127.0.0.1:8081;
4544
server_name localhost;
4645
47-
if ($server_port = 8081) {
48-
return 204;
49-
}
50-
5146
location / { }
5247
location /custom {
5348
real_ip_header X-Real-IP-Custom;
@@ -63,6 +58,13 @@ http {
6358
real_ip_recursive on;
6459
}
6560
}
61+
62+
server {
63+
listen 127.0.0.1:8081;
64+
server_name localhost;
65+
66+
return 204;
67+
}
6668
}
6769
6870
EOF

0 commit comments

Comments
 (0)