From 96b247571511935be5564f988bb64b180e4cd888 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 31 Oct 2009 06:06:20 +0000 Subject: test_helper: connect(2) may fail with EINVAL Not documented on FreeBSD 7.2, but it seems to happen there and searching around, it seems to happen on other systems, too... --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 404bcb2..3bdbeb1 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -145,7 +145,7 @@ def retry_hit(uris = []) tries = DEFAULT_TRIES begin hit(uris) - rescue Errno::ECONNREFUSED => err + rescue Errno::EINVAL, Errno::ECONNREFUSED => err if (tries -= 1) > 0 sleep DEFAULT_RES retry -- cgit v1.2.3-24-ge0c7