diff options
author | WuYunlong <xzsyeb@126.com> | 2020-07-15 17:38:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 12:38:22 +0300 |
commit | 93bdbf5aa4857ede0816cf790f951da8e2fa2ae9 (patch) | |
tree | 17c4bdf0ed8123b46bf52782145e4733542662de /tests/unit/latency-monitor.tcl | |
parent | dc690161d5652d86d51bd209821bfb0e9c5f7ec2 (diff) | |
download | redis-93bdbf5aa4857ede0816cf790f951da8e2fa2ae9.tar.gz |
Fix command help for unexpected options (#7476)
Diffstat (limited to 'tests/unit/latency-monitor.tcl')
-rw-r--r-- | tests/unit/latency-monitor.tcl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/latency-monitor.tcl b/tests/unit/latency-monitor.tcl index d76867cc6..18b9ecebb 100644 --- a/tests/unit/latency-monitor.tcl +++ b/tests/unit/latency-monitor.tcl @@ -67,4 +67,9 @@ start_server {tags {"latency-monitor"}} { } assert_match {*expire-cycle*} [r latency latest] } + + test {LATENCY HELP should not have unexpected options} { + catch {r LATENCY help xxx} e + assert_match "*Unknown subcommand or wrong number of arguments*" $e + } } |