# HG changeset patch # User Sergey Kandaurov # Date 1426598820 -10800 # Node ID c2481c6b748f7d44c8557b74a0402e0e15a71d17 # Parent ee7a6a14443768d88757503faea120ceab382d8e Tests: adjusted proxy_limit_rate test. Start time is now taken from nginx for greater accuracy. diff --git a/proxy_limit_rate.t b/proxy_limit_rate.t --- a/proxy_limit_rate.t +++ b/proxy_limit_rate.t @@ -43,6 +43,7 @@ http { location / { proxy_pass http://127.0.0.1:8080/data; proxy_limit_rate 12000; + add_header X-Msec $msec; } location /data { @@ -57,10 +58,9 @@ EOF ############################################################################### -my $t1 = time(); - my $r = http_get('/'); +my ($t1) = $r =~ /X-Msec: (\d+)/; my $diff = time() - $t1; # four chunks are split with three 1s delays + 1s error