summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorjudeng <abc3844@126.com>2022-06-23 23:19:36 +0800
committerGitHub <noreply@github.com>2022-06-23 18:19:36 +0300
commitd2405b9b6bf1d4e6b84d3974a52fabcbeac533f1 (patch)
treef8651df09d370a16fdddfc64e3e9c893b103ba35 /tests/integration
parentaabce8932a8ef3617301b142447e05c622b48830 (diff)
downloadredis-d2405b9b6bf1d4e6b84d3974a52fabcbeac533f1.tar.gz
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. */ ```
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/redis-benchmark.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/redis-benchmark.tcl b/tests/integration/redis-benchmark.tcl
index ac894aed0..5e8555b1b 100644
--- a/tests/integration/redis-benchmark.tcl
+++ b/tests/integration/redis-benchmark.tcl
@@ -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
}