Commit a0ff29bc authored by antirez's avatar antirez
Browse files

Test: MOVE expire test improved.

Related to #2765.
parent e2c0d896
......@@ -446,6 +446,19 @@ start_server {tags {"basic"}} {
r select 9
}
test {MOVE does not create an expire if it does not exist} {
r select 10
r flushdb
r select 9
r set mykey foo
r move mykey 10
assert {[r ttl mykey] == -2}
r select 10
assert {[r ttl mykey] == -1}
assert {[r get mykey] eq "foo"}
r select 9
}
test {SET/GET keys in different DBs} {
r set a hello
r set b world
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment