Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #918 from jdelStrother/timeout_error

Catch the correct timeout exception during Server#boot
  • Loading branch information...
commit 00df18ac5fa32f2a54329b709fb47ee80c67a7fe 2 parents 2b324d3 + 13bca79
@jnicklas authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/capybara/server.rb
View
2  lib/capybara/server.rb
@@ -76,7 +76,7 @@ def boot
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
Please sign in to comment.
Something went wrong with that request. Please try again.