From 0705ff3f04379c4e9f95999f3eefe0282aeb87a5 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 17 Apr 2012 10:04:42 +0200 Subject: [PATCH] Less false positives in maxclients test, hopefully. --- tests/unit/limits.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/limits.tcl b/tests/unit/limits.tcl index 9988983fa..f622e1b91 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}