diff proxy_request_buffering.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
line wrap: on
line diff
--- a/proxy_request_buffering.t
+++ b/proxy_request_buffering.t
@@ -39,7 +39,7 @@ http {
     %%TEST_GLOBALS_HTTP%%
 
     server {
-        listen       127.0.0.1:%%PORT_0%%;
+        listen       127.0.0.1:8080;
         server_name  localhost;
 
         client_header_buffer_size 1k;
@@ -48,25 +48,25 @@ http {
         location / {
             client_body_buffer_size 2k;
             add_header X-Body "$request_body";
-            proxy_pass http://127.0.0.1:%%PORT_1%%;
+            proxy_pass http://127.0.0.1:8081;
         }
         location /small {
             client_body_in_file_only on;
-            proxy_pass http://127.0.0.1:%%PORT_0%%/;
+            proxy_pass http://127.0.0.1:8080/;
         }
         location /single {
             client_body_in_single_buffer on;
             add_header X-Body "$request_body";
-            proxy_pass http://127.0.0.1:%%PORT_1%%;
+            proxy_pass http://127.0.0.1:8081;
         }
         location /discard {
             return 200 "TEST\n";
         }
         location /preread {
-            proxy_pass http://127.0.0.1:%%PORT_2%%/;
+            proxy_pass http://127.0.0.1:8082/;
         }
         location /error_page {
-            proxy_pass http://127.0.0.1:%%PORT_1%%/404;
+            proxy_pass http://127.0.0.1:8081/404;
             error_page 404 /404;
             proxy_intercept_errors on;
         }
@@ -76,11 +76,11 @@ http {
     }
 
     server {
-        listen       127.0.0.1:%%PORT_1%%;
+        listen       127.0.0.1:8081;
         server_name  localhost;
 
         location / {
-            proxy_pass http://127.0.0.1:%%PORT_0%%/discard;
+            proxy_pass http://127.0.0.1:8080/discard;
         }
         location /404 { }
     }
@@ -127,7 +127,7 @@ like(http_get_body('/small', '0123456789
 
 # interactive tests
 
-my $s = get_body('/preread', port(2), 10);
+my $s = get_body('/preread', port(8082), 10);
 ok($s, 'no preread');
 
 SKIP: {
@@ -140,7 +140,7 @@ like($s->{http_end}(), qr/200 OK/, 'no p
 
 }
 
-$s = get_body('/preread', port(2), 10, '01234');
+$s = get_body('/preread', port(8082), 10, '01234');
 ok($s, 'preread');
 
 SKIP: {