]> git.saurik.com Git - redis.git/commitdiff
Show problem with 'keys' command with specific command sequence.
authorHarmen <harm@dds.nl>
Mon, 30 Apr 2012 15:57:12 +0000 (09:57 -0600)
committerantirez <antirez@gmail.com>
Tue, 1 May 2012 08:51:59 +0000 (10:51 +0200)
tests/unit/expire.tcl

index 82876ddd79076b71490b0b758c21f46300ecaff2..56a59f7680dffb3314ab785054b9db0d404c4add 100644 (file)
@@ -141,4 +141,15 @@ start_server {tags {"expire"}} {
         set size2 [r dbsize]
         list $size1 $size2
     } {3 0}
+
+    test {5 keys in, 5 keys out} {
+        r flushdb
+        r set a c
+        r expire a 5
+        r set t c
+        r set e c
+        r set s c
+        r set foo b
+        lsort [r keys *]
+    } {a e foo s t}
 }