diff options
author | sundb <sundbcn@gmail.com> | 2021-02-25 00:45:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 08:45:13 -0800 |
commit | 60d5ef4d828bc8732ac1d4c274471655a13d667d (patch) | |
tree | 4cb587e239ab08de9504f39a43660a11116c6f88 /tests/unit/info.tcl | |
parent | 21316d57090768fe2d5ff3dd5edcb328137aaaca (diff) | |
download | redis-60d5ef4d828bc8732ac1d4c274471655a13d667d.tar.gz |
Use addReplyErrorObject with shared.noscripterr (#8544)
Diffstat (limited to 'tests/unit/info.tcl')
-rw-r--r-- | tests/unit/info.tcl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/info.tcl b/tests/unit/info.tcl index 08171fff9..0602e7147 100644 --- a/tests/unit/info.tcl +++ b/tests/unit/info.tcl @@ -62,6 +62,19 @@ start_server {tags {"info"}} { assert_equal [s total_error_replies] 2 } + test {errorstats: failed call NOSCRIPT error} { + r config resetstat + assert_equal [s total_error_replies] 0 + assert_match {} [errorstat NOSCRIPT] + catch {r evalsha NotValidShaSUM 0} e + assert_match {NOSCRIPT*} $e + assert_match {*count=1*} [errorstat NOSCRIPT] + assert_match {*calls=1,*,rejected_calls=0,failed_calls=1} [cmdstat evalsha] + assert_equal [s total_error_replies] 1 + r config resetstat + assert_match {} [errorstat NOSCRIPT] + } + test {errorstats: failed call NOGROUP error} { r config resetstat assert_match {} [errorstat NOGROUP] |