From a977d57759bbe20ae6a6eff6ef1af29a6b7ff936 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Nov 2012 17:05:17 +0000 Subject: Handle connection-refused. --- worker/tests/http.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'worker/tests/http.rb') diff --git a/worker/tests/http.rb b/worker/tests/http.rb index 3988606..0d4cdd3 100755 --- a/worker/tests/http.rb +++ b/worker/tests/http.rb @@ -138,6 +138,9 @@ class HTTPTest rescue Timeout::Error => ex @error = "time out reached" return false + rescue Errno::ECONNREFUSED => ex + @error = "Connection refused" + return false rescue => ex raise ex return false -- cgit v1.2.1