]> git.saurik.com Git - redis.git/blobdiff - tests/test_helper.tcl
Regression test for issue 417 (memory leak when replicating to DB with id >= 10)
[redis.git] / tests / test_helper.tcl
index 4c30b3c6fdb6658b8deb66a9c5393988beb4b5b6..7978d8a4dee28639caaa763ddb30bcc0c35a8c40 100644 (file)
@@ -25,14 +25,20 @@ set ::all_tests {
     unit/other
     unit/cas
     unit/quit
     unit/other
     unit/cas
     unit/quit
+    unit/aofrw
     integration/replication
     integration/replication-2
     integration/replication-3
     integration/replication
     integration/replication-2
     integration/replication-3
+    integration/replication-4
     integration/aof
     integration/aof
+    integration/rdb
+    integration/convert-zipmap-hash-on-load
     unit/pubsub
     unit/slowlog
     unit/scripting
     unit/maxmemory
     unit/pubsub
     unit/slowlog
     unit/scripting
     unit/maxmemory
+    unit/introspection
+    unit/obuf-limits
 }
 # Index to the next test to run in the ::all_tests list.
 set ::next_test 0
 }
 # Index to the next test to run in the ::all_tests list.
 set ::next_test 0
@@ -113,7 +119,7 @@ proc reconnect {args} {
     }
 
     # re-set $srv in the servers list
     }
 
     # re-set $srv in the servers list
-    set ::servers [lreplace $::servers end+$level 1 $srv]
+    lset ::servers end+$level $srv
 }
 
 proc redis_deferring_client {args} {
 }
 
 proc redis_deferring_client {args} {
@@ -153,9 +159,9 @@ proc cleanup {} {
 proc find_available_port start {
     for {set j $start} {$j < $start+1024} {incr j} {
         if {[catch {
 proc find_available_port start {
     for {set j $start} {$j < $start+1024} {incr j} {
         if {[catch {
-            set fd [socket 127.0.0.1 $start]
+            set fd [socket 127.0.0.1 $j]
         }]} {
         }]} {
-            return $start
+            return $j
         } else {
             close $fd
         }
         } else {
             close $fd
         }