From eda06b51fb848a38e09733e936134e977a7c6852 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 30 Oct 2015 10:02:10 +0100 Subject: [PATCH] Scripting: test Redis provided Lua functions error reporting. --- tests/unit/scripting.tcl | 9 +++++++++ 1 file changed, 9 insertions(+) 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