1
0
Fork 0
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:
Thomas Walpole 2018-08-29 06:51:53 -07:00
parent 5242ea1c44
commit 14376690fd

View file

@ -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