Permalink
Browse files

Redis test port allocation fixed.

  • Loading branch information...
1 parent 8a6b21d commit 8a625029e709cbe959a692da1ea3e9ea85dffc32 @antirez antirez committed Dec 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_helper.tcl
View
@@ -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
}

0 comments on commit 8a62502

Please sign in to comment.