summaryrefslogtreecommitdiff
path: root/tests/unit/expire.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-08-03 13:08:32 +0200
committerantirez <antirez@gmail.com>2010-08-03 13:08:32 +0200
commit2c572622fb99f32328de58f815953f17d4ad0e4d (patch)
tree38ea2c1b8008f14bb966c59b6b2d1e14db011a79 /tests/unit/expire.tcl
parent0cf5b7b57cde8b699198a866b04feca9f5394d03 (diff)
downloadredis-2c572622fb99f32328de58f815953f17d4ad0e4d.tar.gz
no longer passing tests due to the new write-on-volatile semantics modified/removed
Diffstat (limited to 'tests/unit/expire.tcl')
-rw-r--r--tests/unit/expire.tcl9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/expire.tcl b/tests/unit/expire.tcl
index b80975b6e..5de907abb 100644
--- a/tests/unit/expire.tcl
+++ b/tests/unit/expire.tcl
@@ -1,12 +1,13 @@
start_server {tags {"expire"}} {
- test {EXPIRE - don't set timeouts multiple times} {
+ test {EXPIRE - set timeouts multiple times} {
r set x foobar
set v1 [r expire x 5]
set v2 [r ttl x]
set v3 [r expire x 10]
set v4 [r ttl x]
+ r expire x 4
list $v1 $v2 $v3 $v4
- } {1 5 0 5}
+ } {1 5 1 10}
test {EXPIRE - It should be still possible to read 'x'} {
r get x
@@ -19,13 +20,13 @@ start_server {tags {"expire"}} {
} {{} 0}
}
- test {EXPIRE - Delete on write policy} {
+ test {EXPIRE - write on expire should work} {
r del x
r lpush x foo
r expire x 1000
r lpush x bar
r lrange x 0 -1
- } {bar}
+ } {bar foo}
test {EXPIREAT - Check for EXPIRE alike behavior} {
r del x