1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Catch the correct timeout exception during Server#boot

TimeoutError is actually Capybara::TimeoutError, which is unrelated to Ruby's Timeout
This commit is contained in:
Jonathan del Strother 2012-12-26 13:50:45 +00:00
parent 2b324d3200
commit 13bca79d45

View file

@ -76,7 +76,7 @@ module Capybara
Timeout.timeout(60) { @server_thread.join(0.1) until responsive? }
end
rescue TimeoutError
rescue Timeout::Error
raise "Rack application timed out during boot"
else
self