Commit 0705ff3f authored by antirez's avatar antirez
Browse files

Less false positives in maxclients test, hopefully.

parent 93a74949
...@@ -2,9 +2,10 @@ start_server {tags {"limits"} overrides {maxclients 10}} { ...@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment