comparison fastcgi_merge_params.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
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
44 fastcgi_cache_key stub; 44 fastcgi_cache_key stub;
45 45
46 fastcgi_param HTTP_X_BLAH "blah"; 46 fastcgi_param HTTP_X_BLAH "blah";
47 47
48 server { 48 server {
49 listen 127.0.0.1:%%PORT_0%%; 49 listen 127.0.0.1:8080;
50 server_name localhost; 50 server_name localhost;
51 51
52 fastcgi_cache NAME; 52 fastcgi_cache NAME;
53 53
54 location / { 54 location / {
55 fastcgi_pass 127.0.0.1:%%PORT_1%%; 55 fastcgi_pass 127.0.0.1:8081;
56 } 56 }
57 57
58 location /no/ { 58 location /no/ {
59 fastcgi_pass 127.0.0.1:%%PORT_1%%; 59 fastcgi_pass 127.0.0.1:8081;
60 fastcgi_cache off; 60 fastcgi_cache off;
61 } 61 }
62 62
63 location /custom/ { 63 location /custom/ {
64 fastcgi_pass 127.0.0.1:%%PORT_1%%; 64 fastcgi_pass 127.0.0.1:8081;
65 fastcgi_param HTTP_X_BLAH "custom"; 65 fastcgi_param HTTP_X_BLAH "custom";
66 } 66 }
67 } 67 }
68 } 68 }
69 69
70 EOF 70 EOF
71 71
72 $t->run_daemon(\&fastcgi_daemon); 72 $t->run_daemon(\&fastcgi_daemon);
73 $t->run()->waitforsocket('127.0.0.1:' . port(1)); 73 $t->run()->waitforsocket('127.0.0.1:' . port(8081));
74 74
75 ############################################################################### 75 ###############################################################################
76 76
77 like(http_get_ims('/'), qr/ims=;/, 77 like(http_get_ims('/'), qr/ims=;/,
78 'if-modified-since cleared with cache'); 78 'if-modified-since cleared with cache');
110 } 110 }
111 111
112 ############################################################################### 112 ###############################################################################
113 113
114 sub fastcgi_daemon { 114 sub fastcgi_daemon {
115 my $socket = FCGI::OpenSocket('127.0.0.1:' . port(1), 5); 115 my $socket = FCGI::OpenSocket('127.0.0.1:' . port(8081), 5);
116 my $request = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%ENV, 116 my $request = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%ENV,
117 $socket); 117 $socket);
118 118
119 my $count; 119 my $count;
120 while( $request->Accept() >= 0 ) { 120 while( $request->Accept() >= 0 ) {