summaryrefslogtreecommitdiff
path: root/worker/tests/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'worker/tests/http.rb')
-rwxr-xr-xworker/tests/http.rb3
1 files changed, 3 insertions, 0 deletions
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