diff options
author | Azul <azul@riseup.net> | 2016-09-29 12:56:14 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-09-29 12:56:14 +0200 |
commit | 4cd842927a60e4e81915da22983f216ccd54d6a3 (patch) | |
tree | 413c53fab7a7a7d108de4b192b60f24dc3265169 /test/remote/celluloid_http_test.rb | |
parent | bde67131c2382883f7957fa06d85b471a18c09d4 (diff) |
skip tests with ConnectionErrors
We handle these errors nicely in the dispatcher and have tests for that.
Tests should fail or err out when running into exceptions we are not
handling yet. But for these it's better to just skip.
Diffstat (limited to 'test/remote/celluloid_http_test.rb')
-rw-r--r-- | test/remote/celluloid_http_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/remote/celluloid_http_test.rb b/test/remote/celluloid_http_test.rb index 46a5259..d5d33b4 100644 --- a/test/remote/celluloid_http_test.rb +++ b/test/remote/celluloid_http_test.rb @@ -17,6 +17,8 @@ class Nickserver::Adapters::CelluloidHttpTest < Minitest::Test url = Nickserver::Config.hkp_url status, _body = adapter.get url assert_equal 404, status + rescue HTTP::ConnectionError => e + skip "could not talk to hkp server: #{e}" end protected |