diff options
author | antirez <antirez@gmail.com> | 2015-09-14 12:35:51 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-09-14 12:37:49 +0200 |
commit | 8819800310b5e7aefc4372102eaf84d72b82d705 (patch) | |
tree | e886627617ad6bcb84a0ffe95025f3d2958ad95b | |
parent | 5fd2dc318628c529781ebf39a9ac75ac9037c030 (diff) | |
download | redis-8819800310b5e7aefc4372102eaf84d72b82d705.tar.gz |
Test: MOVE expire test improved.
Related to #2765.
-rw-r--r-- | tests/unit/basic.tcl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/basic.tcl b/tests/unit/basic.tcl index 489272f5d..7607aaca4 100644 --- a/tests/unit/basic.tcl +++ b/tests/unit/basic.tcl @@ -423,6 +423,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 |