diff options
author | antirez <antirez@gmail.com> | 2015-10-30 10:02:10 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-10-30 12:06:09 +0100 |
commit | eda06b51fb848a38e09733e936134e977a7c6852 (patch) | |
tree | 463af29cf81d4f4cd315bb6436a48d675b8e83ed /tests | |
parent | ebaa9226ee71f85d9e79eddfd3da7bffb0331aeb (diff) | |
download | redis-eda06b51fb848a38e09733e936134e977a7c6852.tar.gz |
Scripting: test Redis provided Lua functions error reporting.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/scripting.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index 921382e34..49bccc4d8 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -463,6 +463,15 @@ start_server {tags {"scripting"}} { end } 0 } + + test {Functions in the Redis namespace are able to report errors} { + catch { + r eval { + redis.sha1hex() + } 0 + } e + set e + } {*wrong number*} } # Start a new server since the last test in this stanza will kill the |