Skip to content

Commit

Permalink
Use regular Ruby timout in server bootup process
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Feb 1, 2012
1 parent a1b1cc7 commit 85b728e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/server.rb
Expand Up @@ -65,7 +65,7 @@ def boot
Capybara.server.call(Identify.new(@app), @port)
end

Capybara.timeout(60) { responsive? }
Timeout.timeout(60) { sleep(0.1) until responsive? }
end
end
rescue TimeoutError
Expand Down

0 comments on commit 85b728e

Please sign in to comment.