X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0d83011a11b42fe1b0d1bebb7b9a3318fd44f0e5..0bd6d68e34bc41cd80cd7fc44aab9cf3884de8dc:/tests/unit/limits.tcl?ds=sidebyside diff --git a/tests/unit/limits.tcl b/tests/unit/limits.tcl index 9988983f..b37ea9b0 100644 --- a/tests/unit/limits.tcl +++ b/tests/unit/limits.tcl @@ -2,9 +2,12 @@ start_server {tags {"limits"} overrides {maxclients 10}} { test {Check if maxclients works refusing connections} { set c 0 catch { - while 1 { + while {$c < 50} { incr c - redis_deferring_client + set rd [redis_deferring_client] + $rd ping + $rd read + after 100 } } e assert {$c > 8 && $c <= 10}