valkey/tests/unit/limits.tcl

15 lines
373 B
Tcl
Raw Normal View History

2012-04-08 09:16:40 +00:00
start_server {tags {"limits"} overrides {maxclients 10}} {
test {Check if maxclients works refusing connections} {
set c 0
catch {
while {$c < 50} {
2012-04-08 09:16:40 +00:00
incr c
redis_deferring_client
after 100
2012-04-08 09:16:40 +00:00
}
} e
assert {$c > 8 && $c <= 10}
set e
} {*ERR max*reached*}
}