Skip to content

Commit

Permalink
test_helper: ensure test client connects to valid address
Browse files Browse the repository at this point in the history
You can listen on 0.0.0.0, but trying to connect to it doesn't work
well on OpenBSD.

Acked-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information
Jeremy Evans authored and Eric Wong committed Nov 15, 2011
1 parent 66c706a commit 2fd5910
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_helper.rb
Expand Up @@ -73,6 +73,7 @@ def hit(uris)
res = nil

if u.kind_of? String
u = 'http://127.0.0.1:8080/' if u == 'http://0.0.0.0:8080/'
res = Net::HTTP.get(URI.parse(u))
else
url = URI.parse(u[0])
Expand Down

0 comments on commit 2fd5910

Please sign in to comment.