mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-10 00:03:09 -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
|
# not using shared test because error is swallowed by Sinatra
|
||||||
def test_timeout
|
def test_timeout
|
||||||
conn = create_connection(:request => {:timeout => 1, :open_timeout => 1})
|
conn = create_connection(:request => {:timeout => 1, :open_timeout => 1})
|
||||||
assert_raise Faraday::Error::ClientError do
|
begin
|
||||||
conn.get '/slow'
|
conn.get '/slow'
|
||||||
|
rescue Faraday::Error::ClientError
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user