mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 09:17:20 +00:00
Test for maxclients.
This commit is contained in:
parent
69e7958918
commit
a3af8d8e49
@ -38,6 +38,7 @@ set ::all_tests {
|
|||||||
unit/scripting
|
unit/scripting
|
||||||
unit/maxmemory
|
unit/maxmemory
|
||||||
unit/introspection
|
unit/introspection
|
||||||
|
unit/limits
|
||||||
unit/obuf-limits
|
unit/obuf-limits
|
||||||
unit/dump
|
unit/dump
|
||||||
}
|
}
|
||||||
|
13
tests/unit/limits.tcl
Normal file
13
tests/unit/limits.tcl
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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*}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user