diff options
author | antirez <antirez@gmail.com> | 2016-07-06 11:50:13 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-07-06 11:50:20 +0200 |
commit | abb3385e8d9b3edc2d85561854b0d2a0c34d3743 (patch) | |
tree | df866a8c0ebedddc09250aad74d4e4d8f920796a /tests | |
parent | 23791828f1cd54ebea95d8c860058e55ff28aebf (diff) | |
download | redis-abb3385e8d9b3edc2d85561854b0d2a0c34d3743.tar.gz |
Regression test for issue #3333.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/expire.tcl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/expire.tcl b/tests/unit/expire.tcl index ff3dacb33..0a50dd31b 100644 --- a/tests/unit/expire.tcl +++ b/tests/unit/expire.tcl @@ -198,4 +198,10 @@ start_server {tags {"expire"}} { r set foo b lsort [r keys *] } {a e foo s t} + + test {EXPIRE with empty string as TTL should report an error} { + r set foo bar + catch {r expire foo ""} e + set e + } {*not an integer*} } |