X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0d83011a11b42fe1b0d1bebb7b9a3318fd44f0e5..7d3ee4172f52bf94185960799c1d12c16ed96ff7:/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}