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:
parent
2b324d3200
commit
13bca79d45
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue