diff http_resolver_cname.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 e4974af3fb12
line wrap: on
line diff
--- a/http_resolver_cname.t
+++ b/http_resolver_cname.t
@@ -37,21 +37,21 @@ http {
     %%TEST_GLOBALS_HTTP%%
 
     server {
-        listen       127.0.0.1:%%PORT_0%%;
+        listen       127.0.0.1:8080;
         server_name  localhost;
 
         location /short {
-            resolver    127.0.0.1:%%PORT_1_UDP%%;
+            resolver    127.0.0.1:%%PORT_8081_UDP%%;
             resolver_timeout 2s;
 
-            proxy_pass  http://$host:%%PORT_0%%/t;
+            proxy_pass  http://$host:%%PORT_8080%%/t;
         }
 
         location /long {
-            resolver    127.0.0.1:%%PORT_1_UDP%%;
+            resolver    127.0.0.1:%%PORT_8081_UDP%%;
             resolver_timeout 5s;
 
-            proxy_pass  http://$host:%%PORT_0%%/t;
+            proxy_pass  http://$host:%%PORT_8080%%/t;
         }
 
         location / { }
@@ -60,12 +60,12 @@ http {
 
 EOF
 
-$t->run_daemon(\&dns_daemon, port(1), $t);
+$t->run_daemon(\&dns_daemon, port(8081), $t);
 
 $t->write_file('t', '');
 $t->run();
 
-$t->waitforfile($t->testdir . '/' . port(1));
+$t->waitforfile($t->testdir . '/' . port(8081));
 
 ###############################################################################