mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Test: regression for issues #1483.
This commit is contained in:
parent
58c8a071a5
commit
5d08413b13
@ -16,6 +16,16 @@ start_server {tags {"dump"}} {
|
|||||||
r get foo
|
r get foo
|
||||||
} {bar}
|
} {bar}
|
||||||
|
|
||||||
|
test {RESTORE can set an expire that overflows a 32 bit integer} {
|
||||||
|
r set foo bar
|
||||||
|
set encoded [r dump foo]
|
||||||
|
r del foo
|
||||||
|
r restore foo 2569591501 $encoded
|
||||||
|
set ttl [r pttl foo]
|
||||||
|
assert {$ttl >= (2569591501-3000) && $ttl <= 2569591501}
|
||||||
|
r get foo
|
||||||
|
} {bar}
|
||||||
|
|
||||||
test {RESTORE returns an error of the key already exists} {
|
test {RESTORE returns an error of the key already exists} {
|
||||||
r set foo bar
|
r set foo bar
|
||||||
set e {}
|
set e {}
|
||||||
|
Loading…
Reference in New Issue
Block a user