Skip to content

Commit

Permalink
Merge pull request juju#33 from howbazaar/find-tcp-port
Browse files Browse the repository at this point in the history
Listen more broadly for a free port.
  • Loading branch information
howbazaar committed Sep 10, 2014
2 parents 3a1f0e5 + e18dc1f commit 7348fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ func (s *MgoSuite) TearDownTest(c *gc.C) {
// We hope that the probability is small enough during
// testing to be negligible.
func FindTCPPort() int {
l, err := net.Listen("tcp", "127.0.0.1:0")
l, err := net.Listen("tcp", ":0")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 7348fa1

Please sign in to comment.