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:
judeng 2022-06-23 23:19:36 +08:00 committed by GitHub
parent aabce8932a
commit d2405b9b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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
}