# HG changeset patch # User Sergey Kandaurov # Date 1567671898 -10800 # Node ID 06fbbf1706bdcf4e5d444cf9cbe923723d7d5aaf # Parent 5ae8e8feac36939e79c5ee8c266b32f6aa9d96fb Tests: tune proxy_limit_rate tests for slow hosts. diff --git a/proxy_limit_rate.t b/proxy_limit_rate.t --- a/proxy_limit_rate.t +++ b/proxy_limit_rate.t @@ -48,7 +48,7 @@ http { 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 @@ http { 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 @@ my $diff = time() - $t1; # 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,