mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Scripting: test Redis provided Lua functions error reporting.
This commit is contained in:
parent
ebaa9226ee
commit
eda06b51fb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user