mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
14 lines
339 B
Tcl
14 lines
339 B
Tcl
|
start_server {tags {"limits"} overrides {maxclients 10}} {
|
||
|
test {Check if maxclients works refusing connections} {
|
||
|
set c 0
|
||
|
catch {
|
||
|
while 1 {
|
||
|
incr c
|
||
|
redis_deferring_client
|
||
|
}
|
||
|
} e
|
||
|
assert {$c > 8 && $c <= 10}
|
||
|
set e
|
||
|
} {*ERR max*reached*}
|
||
|
}
|