mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 18:54:58 +00:00
da831c0d22
Updated procedure redis_deferring_client in test environent to valkey_deferring_client. Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
22 lines
573 B
Tcl
22 lines
573 B
Tcl
start_server {tags {"limits network external:skip"} overrides {maxclients 10}} {
|
|
if {$::tls} {
|
|
set expected_code "*I/O error*"
|
|
} else {
|
|
set expected_code "*ERR max*reached*"
|
|
}
|
|
test {Check if maxclients works refusing connections} {
|
|
set c 0
|
|
catch {
|
|
while {$c < 50} {
|
|
incr c
|
|
set rd [valkey_deferring_client]
|
|
$rd ping
|
|
$rd read
|
|
after 100
|
|
}
|
|
} e
|
|
assert {$c > 8 && $c <= 10}
|
|
set e
|
|
} $expected_code
|
|
}
|