mirror of
https://github.com/lostisland/faraday.git
synced 2025-08-10 00:03:15 -04:00
rescue is more forgiving
This commit is contained in:
parent
8f78b836c6
commit
b6410720b8
@ -17,8 +17,9 @@ module Adapters
|
||||
# not using shared test because error is swallowed by Sinatra
|
||||
def test_timeout
|
||||
conn = create_connection(:request => {:timeout => 1, :open_timeout => 1})
|
||||
assert_raise Faraday::Error::ClientError do
|
||||
begin
|
||||
conn.get '/slow'
|
||||
rescue Faraday::Error::ClientError
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user