changeset 137:59021f2b2fd3

Tests: fix limit_req test to avoid timeouts. In 0.8.38 delay finally honors rate correctly, and we don't want to wait 60 seconds.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 31 May 2010 19:41:36 +0400
parents b436d71bb41b
children 0d11b58d63bc
files limit-req.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/limit-req.t
+++ b/limit-req.t
@@ -37,7 +37,7 @@ http {
     %%TEST_GLOBALS_HTTP%%
 
     limit_req_zone  $binary_remote_addr  zone=one:10m   rate=1r/s;
-    limit_req_zone  $binary_remote_addr  zone=long:10m  rate=1r/m;
+    limit_req_zone  $binary_remote_addr  zone=long:10m  rate=1r/s;
     limit_req_zone  $binary_remote_addr  zone=fast:10m  rate=1000r/s;
 
     server {