提交 a3af8d8e 编写于 作者: A antirez

Test for maxclients.

上级 69e79589
......@@ -38,6 +38,7 @@ set ::all_tests {
unit/scripting
unit/maxmemory
unit/introspection
unit/limits
unit/obuf-limits
unit/dump
}
......
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*}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册