summary refs log tree commit homepage
diff options
context:
space:
mode:
authorJeremy Evans <jeremyevans0@gmail.com>2011-11-15 15:26:36 -0800
committerEric Wong <normalperson@yhbt.net>2011-11-15 15:26:43 -0800
commit2fd5910969419c17aa6a31fb2119eb47a121d497 (patch)
tree85377ffc26da33550f08bc845819c75d5c214903
parent66c706acfb3cda802bac4629219e3c3e064352ed (diff)
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>
-rw-r--r--test/test_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 3471b55..11dd5ee 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -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])