summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-07-22 23:40:03 +0200
committerantirez <antirez@gmail.com>2013-07-22 23:40:48 +0200
commitddccd0ed58eafaa7394965156dd0e95cf035dcae (patch)
tree596e191e855dd12701c373801ab84618ffa66375
parentdbaa5b0b9a0a68cb44f32b6fcc8d9dbf0b2fc49d (diff)
downloadredis-ddccd0ed58eafaa7394965156dd0e95cf035dcae.tar.gz
Test: regression test for issue #1208.
-rw-r--r--tests/unit/basic.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/basic.tcl b/tests/unit/basic.tcl
index c766b3de9..1f46ba666 100644
--- a/tests/unit/basic.tcl
+++ b/tests/unit/basic.tcl
@@ -754,4 +754,11 @@ start_server {tags {"basic"}} {
set ttl [r ttl foo]
assert {$ttl <= 10 && $ttl > 5}
}
+
+ test {KEYS * two times with long key, Github issue #1208} {
+ r flushdb
+ r set dlskeriewrioeuwqoirueioqwrueoqwrueqw test
+ r keys *
+ r keys *
+ } {dlskeriewrioeuwqoirueioqwrueoqwrueqw}
}