Scripting: test Redis provided Lua functions error reporting.

This commit is contained in:
antirez 2015-10-30 10:02:10 +01:00
parent ebaa9226ee
commit eda06b51fb

View File

@ -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