mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
Scripting: test Redis provided Lua functions error reporting.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user