From: antirez Date: Tue, 17 Apr 2012 08:04:42 +0000 (+0200) Subject: Less false positives in maxclients test, hopefully. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/96aeca4b9d084ceff6bc8ee56a2bf58bab61d3db?hp=-c Less false positives in maxclients test, hopefully. --- 96aeca4b9d084ceff6bc8ee56a2bf58bab61d3db diff --git a/tests/unit/limits.tcl b/tests/unit/limits.tcl index 9988983f..f622e1b9 100644 --- a/tests/unit/limits.tcl +++ b/tests/unit/limits.tcl @@ -2,9 +2,10 @@ 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 + after 100 } } e assert {$c > 8 && $c <= 10}