Less false positives in maxclients test, hopefully.

This commit is contained in:
antirez 2012-04-17 10:04:42 +02:00
parent 93a74949d7
commit 0705ff3f04

View File

@ -2,9 +2,10 @@ start_server {tags {"limits"} overrides {maxclients 10}} {
test {Check if maxclients works refusing connections} { test {Check if maxclients works refusing connections} {
set c 0 set c 0
catch { catch {
while 1 { while {$c < 50} {
incr c incr c
redis_deferring_client redis_deferring_client
after 100
} }
} e } e
assert {$c > 8 && $c <= 10} assert {$c > 8 && $c <= 10}