Permalink
Browse files

test_helper: ensure test client connects to valid address

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 Eric Wong
Jeremy Evans authored and Eric Wong committed Nov 15, 2011
1 parent 66c706a commit 2fd5910969419c17aa6a31fb2119eb47a121d497
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/test_helper.rb
View
@@ -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])

0 comments on commit 2fd5910

Please sign in to comment.