diff options
author | Binbin <binloveplay1314@qq.com> | 2023-03-26 13:39:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-26 08:39:04 +0300 |
commit | 2cc99c692c4984f5d9c42e4d2d25fa70125ef0a7 (patch) | |
tree | 0b123ff4e1c5fef027b00e7d77dc5e1dcf45361f /tests | |
parent | 9e15b42fda8fa622edf6a1e15cba0fc066a35407 (diff) | |
download | redis-2cc99c692c4984f5d9c42e4d2d25fa70125ef0a7.tar.gz |
Add COMMAND COUNT test to cover reply-schemas-validator test (#11971)
Since we remove the COMMAND COUNT call in sentinel test in #11950,
reply-schemas-validator started reporting this error:
```
WARNING! The following commands were not hit at all:
command|count
ERROR! at least one command was not hit by the tests
```
This PR add a COMMAND COUNT test to cover it and also fix some
typos in req-res-log-validator.py
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/introspection-2.tcl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/introspection-2.tcl b/tests/unit/introspection-2.tcl index a0cf0c30f..52a13edf7 100644 --- a/tests/unit/introspection-2.tcl +++ b/tests/unit/introspection-2.tcl @@ -118,6 +118,10 @@ start_server {tags {"introspection"}} { assert_match {*calls=1,*} [cmdstat geoadd] } {} {needs:config-resetstat} + test {COMMAND COUNT get total number of Redis commands} { + assert_morethan [r command count] 0 + } + test {COMMAND GETKEYS GET} { assert_equal {key} [r command getkeys get key] } |