# HG changeset patch # User Sergey Kandaurov # Date 1474576944 -10800 # Node ID 1a820a5a32ae5ce704d70530d6f58e7a4d08a15f # Parent 90a0d85436c174d416dceabebb5b425f383e2b85 Tests: do not depend on peer selection order in fastcgi_body2.t. diff --git a/fastcgi_body2.t b/fastcgi_body2.t --- a/fastcgi_body2.t +++ b/fastcgi_body2.t @@ -42,8 +42,13 @@ http { %%TEST_GLOBALS_HTTP%% upstream u { - server 127.0.0.1:8081 max_fails=0; - server 127.0.0.1:8082; + server 127.0.0.1:8081; + server 127.0.0.1:8082 backup; + } + + upstream u2 { + server 127.0.0.1:8081; + server 127.0.0.1:8082 backup; } server { @@ -59,7 +64,7 @@ http { } location /in_memory { - fastcgi_pass u; + fastcgi_pass u2; fastcgi_param REQUEST_URI $request_uri; fastcgi_param CONTENT_LENGTH $content_length; # fastcgi_next_upstream error timeout; @@ -83,10 +88,6 @@ EOF like(http_get_length('/', 'x' x 102400), qr/X-Length: 102400/, 'body length - in file'); -# force quick recovery, so that the next request wouldn't fail - -http_get('/'); - like(http_get_length('/in_memory', 'x' x 102400), qr/X-Length: 102400/, 'body length - in memory');