Skip to content

Commit

Permalink
Redis test port allocation fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Dec 20, 2011
1 parent 8a6b21d commit 8a62502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_helper.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8a62502

Please sign in to comment.