Commit eda06b51 authored by antirez's avatar antirez
Browse files

Scripting: test Redis provided Lua functions error reporting.

parent ebaa9226
...@@ -463,6 +463,15 @@ start_server {tags {"scripting"}} { ...@@ -463,6 +463,15 @@ start_server {tags {"scripting"}} {
end end
} 0 } 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 # Start a new server since the last test in this stanza will kill the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment