Mercurial > hg > nginx-tests
changeset 1040:1a820a5a32ae
Tests: do not depend on peer selection order in fastcgi_body2.t.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 22 Sep 2016 23:42:24 +0300 |
parents | 90a0d85436c1 |
children | 187524328926 |
files | fastcgi_body2.t |
diffstat | 1 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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');