diff fastcgi_request_buffering_chunked.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 1e79a9613813
line wrap: on
line diff
--- a/fastcgi_request_buffering_chunked.t
+++ b/fastcgi_request_buffering_chunked.t
@@ -44,7 +44,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;
@@ -53,17 +53,17 @@ http {
 
         location / {
             client_body_buffer_size 2k;
-            fastcgi_pass 127.0.0.1:%%PORT_1%%;
+            fastcgi_pass 127.0.0.1:8081;
         }
         location /single {
             client_body_in_single_buffer on;
-            fastcgi_pass 127.0.0.1:%%PORT_1%%;
+            fastcgi_pass 127.0.0.1:8081;
         }
         location /preread {
-            fastcgi_pass 127.0.0.1:%%PORT_2%%;
+            fastcgi_pass 127.0.0.1:8082;
         }
         location /error_page {
-            fastcgi_pass 127.0.0.1:%%PORT_1%%;
+            fastcgi_pass 127.0.0.1:8081;
             error_page 404 /404;
             fastcgi_intercept_errors on;
         }
@@ -76,7 +76,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));
 
 ###############################################################################
 
@@ -103,7 +103,7 @@ like(http_get_body('/', '0123456789' x 1
 
 # interactive tests
 
-my $s = get_body('/preread', port(2));
+my $s = get_body('/preread', port(8082));
 ok($s, 'no preread');
 
 SKIP: {
@@ -116,7 +116,7 @@ like($s->{http_end}(), qr/200 OK/, 'no p
 
 }
 
-$s = get_body('/preread', port(2), '01234');
+$s = get_body('/preread', port(8082), '01234');
 ok($s, 'preread');
 
 SKIP: {
@@ -129,7 +129,7 @@ like($s->{http_end}(), qr/200 OK/, 'prer
 
 }
 
-$s = get_body('/preread', port(2), '01234', many => 1);
+$s = get_body('/preread', port(8082), '01234', many => 1);
 ok($s, 'chunks');
 
 SKIP: {
@@ -386,7 +386,7 @@ sub log2c { Test::Nginx::log_core('||', 
 ###############################################################################
 
 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);