diff fastcgi_merge_params2.t @ 974:882267679006

Tests: simplified parallel modifications in tests. Mail tests were simplified in c227348453db.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 12 Jul 2016 17:39:03 +0300
parents e9064d691790
children 196d33c2bb45
line wrap: on
line diff
--- a/fastcgi_merge_params2.t
+++ b/fastcgi_merge_params2.t
@@ -46,17 +46,17 @@ http {
     # no fastcgi_param at all, cache switched on at server level
 
     server {
-        listen       127.0.0.1:%%PORT_0%%;
+        listen       127.0.0.1:8080;
         server_name  localhost;
 
         fastcgi_cache  NAME;
 
         location / {
-            fastcgi_pass    127.0.0.1:%%PORT_1%%;
+            fastcgi_pass    127.0.0.1:8081;
         }
 
         location /no/ {
-            fastcgi_pass    127.0.0.1:%%PORT_1%%;
+            fastcgi_pass    127.0.0.1:8081;
             fastcgi_cache   off;
         }
     }
@@ -65,7 +65,7 @@ http {
 EOF
 
 $t->run_daemon(\&fastcgi_daemon);
-$t->run()->waitforsocket('127.0.0.1:' . port(1));
+$t->run()->waitforsocket('127.0.0.1:' . port(8081));
 
 ###############################################################################
 
@@ -96,7 +96,7 @@ EOF
 ###############################################################################
 
 sub fastcgi_daemon {
-	my $socket = FCGI::OpenSocket('127.0.0.1:' . port(1), 5);
+	my $socket = FCGI::OpenSocket('127.0.0.1:' . port(8081), 5);
 	my $request = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%ENV,
 		$socket);