mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Return false for responsive? when a Net::ReadTimeout or SSLError occurs
This commit is contained in:
parent
5242ea1c44
commit
14376690fd
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ module Capybara
|
||||||
if res.is_a?(Net::HTTPSuccess) || res.is_a?(Net::HTTPRedirection)
|
if res.is_a?(Net::HTTPSuccess) || res.is_a?(Net::HTTPRedirection)
|
||||||
return res.body == app.object_id.to_s
|
return res.body == app.object_id.to_s
|
||||||
end
|
end
|
||||||
rescue SystemCallError
|
rescue SystemCallError, Net::ReadTimeout, OpenSSL::SSL::SSLError
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue