Mercurial > hg > nginx-tests
changeset 1503:06fbbf1706bd
Tests: tune proxy_limit_rate tests for slow hosts.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 05 Sep 2019 11:24:58 +0300 |
parents | 5ae8e8feac36 |
children | 03f8fb9f6492 |
files | proxy_limit_rate.t |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy_limit_rate.t Wed Sep 04 15:03:03 2019 +0300 +++ b/proxy_limit_rate.t Thu Sep 05 11:24:58 2019 +0300 @@ -48,7 +48,7 @@ location / { proxy_pass http://127.0.0.1:8080/data; proxy_buffer_size 4k; - proxy_limit_rate 12000; + proxy_limit_rate 20000; add_header X-Msec $msec; } @@ -57,7 +57,7 @@ proxy_set_header Connection ""; proxy_pass http://u/data; proxy_buffer_size 4k; - proxy_limit_rate 12000; + proxy_limit_rate 20000; add_header X-Msec $msec; } @@ -80,7 +80,7 @@ # four chunks are split with three 1s delays -cmp_ok($diff, '>=', 3, 'proxy_limit_rate'); +cmp_ok($diff, '>=', 1, 'proxy_limit_rate'); like($r, qr/^(XXXXXXXXXX){4000}\x0d?\x0a?$/m, 'response body'); # in case keepalive connection was saved with the delayed flag,