]> git.saurik.com Git - redis.git/commitdiff
minor test suite bug fixed
authorantirez <antirez@gmail.com>
Thu, 4 Nov 2010 09:48:49 +0000 (10:48 +0100)
committerantirez <antirez@gmail.com>
Thu, 4 Nov 2010 09:48:49 +0000 (10:48 +0100)
tests/support/util.tcl

index 95153111f2df263a125978cedfa08f1360e4d3ae..93cb750f048f38d914bdf62c7525fe773728d494 100644 (file)
@@ -200,7 +200,7 @@ proc createComplexDataset {r ops {opt {}}} {
                 randpath {{*}$r sadd $k $v} \
                         {{*}$r srem $k $v} \
                         {
                 randpath {{*}$r sadd $k $v} \
                         {{*}$r srem $k $v} \
                         {
-                            set otherset [findKeyWithType r set]
+                            set otherset [findKeyWithType {*}$r set]
                             if {$otherset ne {}} {
                                 randpath {
                                     {*}$r sunionstore $k2 $k $otherset
                             if {$otherset ne {}} {
                                 randpath {
                                     {*}$r sunionstore $k2 $k $otherset
@@ -216,7 +216,7 @@ proc createComplexDataset {r ops {opt {}}} {
                 randpath {{*}$r zadd $k $d $v} \
                         {{*}$r zrem $k $v} \
                         {
                 randpath {{*}$r zadd $k $d $v} \
                         {{*}$r zrem $k $v} \
                         {
-                            set otherzset [findKeyWithType r zset]
+                            set otherzset [findKeyWithType {*}$r zset]
                             if {$otherzset ne {}} {
                                 randpath {
                                     {*}$r zunionstore $k2 2 $k $otherzset
                             if {$otherzset ne {}} {
                                 randpath {
                                     {*}$r zunionstore $k2 2 $k $otherzset