Test: MOVE expire test improved.

Related to #2765.
This commit is contained in:
antirez 2015-09-14 12:35:51 +02:00
parent 4fec5ee165
commit 0a91fc459f

View File

@ -206,6 +206,19 @@ start_server {tags {"keyspace"}} {
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