mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Less false positives in maxclients test, hopefully.
This commit is contained in:
parent
93a74949d7
commit
0705ff3f04
@ -2,9 +2,10 @@ start_server {tags {"limits"} overrides {maxclients 10}} {
|
|||||||
test {Check if maxclients works refusing connections} {
|
test {Check if maxclients works refusing connections} {
|
||||||
set c 0
|
set c 0
|
||||||
catch {
|
catch {
|
||||||
while 1 {
|
while {$c < 50} {
|
||||||
incr c
|
incr c
|
||||||
redis_deferring_client
|
redis_deferring_client
|
||||||
|
after 100
|
||||||
}
|
}
|
||||||
} e
|
} e
|
||||||
assert {$c > 8 && $c <= 10}
|
assert {$c > 8 && $c <= 10}
|
||||||
|
Loading…
Reference in New Issue
Block a user