fix benchmark failure in daily test with TLS (#10896)
The new test added in #10891 can fail with a different error. see comment in networking.c saying ```c /* That's a best effort error message, don't check write errors. * Note that for TLS connections, no handshake was done yet so nothing * is written and the connection will just drop. */ ```
This commit is contained in:
parent
aabce8932a
commit
d2405b9b6b
@ -118,11 +118,11 @@ start_server {tags {"benchmark network external:skip"}} {
|
||||
}
|
||||
|
||||
test {benchmark: clients idle mode should return error when reached maxclients limit} {
|
||||
set cmd [redisbenchmark $master_host $master_port "-c 2 -I"]
|
||||
set cmd [redisbenchmark $master_host $master_port "-c 10 -I"]
|
||||
set original_maxclients [lindex [r config get maxclients] 1]
|
||||
r config set maxclients 1
|
||||
r config set maxclients 5
|
||||
catch { exec {*}$cmd } error
|
||||
assert_match "*ERR max number of clients reached*" $error
|
||||
assert_match "*Error*" $error
|
||||
r config set maxclients $original_maxclients
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user