Mercurial > hg > nginx-tests
changeset 1432:d17fb72140f2
Tests: adjusted stream_udp_limit_rate.t for slow hosts.
Upload could not be limited if some time passed between 1st and 2nd datagrams.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 18 Jan 2019 16:05:23 +0300 |
parents | aab729315dca |
children | 3e0dcf1e7752 |
files | stream_udp_limit_rate.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stream_udp_limit_rate.t +++ b/stream_udp_limit_rate.t @@ -51,7 +51,7 @@ stream { server { listen 127.0.0.1:%%PORT_8984_UDP%% udp; proxy_pass 127.0.0.1:%%PORT_8980_UDP%%; - proxy_upload_rate 1000; + proxy_upload_rate 500; } } @@ -85,7 +85,7 @@ cmp_ok($t1, '<', $t2, 'download 2 delaye is($s->io($str), $str, 'upload'); is($s->io($str, read_timeout => 0.5), '', 'upload limited'); -select undef, undef, undef, 0.6; +select undef, undef, undef, 1.6; is($s->io($str), $str, 'upload passed'); ###############################################################################