X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/93a74949d7bb5d0c4115d1bf45f856c368badf31..bfc197c3b604baf0dba739ea174d5054284133f0:/tests/unit/limits.tcl 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}