]> git.saurik.com Git - redis.git/blame - tests/unit/limits.tcl
Query the archive to provide a complete KEYS list.
[redis.git] / tests / unit / limits.tcl
CommitLineData
fdf8bd40 1start_server {tags {"limits"} overrides {maxclients 10}} {
2 test {Check if maxclients works refusing connections} {
3 set c 0
4 catch {
96aeca4b 5 while {$c < 50} {
fdf8bd40 6 incr c
212bb9ca 7 set rd [redis_deferring_client]
8 $rd ping
9 $rd read
96aeca4b 10 after 100
fdf8bd40 11 }
12 } e
13 assert {$c > 8 && $c <= 10}
14 set e
15 } {*ERR max*reached*}
16}