From: antirez Date: Wed, 7 Dec 2011 16:15:17 +0000 (+0100) Subject: Redis test port allocation fixed. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/dfcf5a0ac8f80a15a4d1e3e581de80064663c89e?ds=inline;hp=-c Redis test port allocation fixed. --- dfcf5a0ac8f80a15a4d1e3e581de80064663c89e diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 4c30b3c6..2918fe7a 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -153,9 +153,9 @@ proc cleanup {} { 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 }