Merge pull request #4995 from davidtaylorhq/qunit-warmup
Improve “server warmup” check for qunit rake task
This commit is contained in:
commit
400a55eca3
|
@ -62,7 +62,7 @@ task "qunit:test", [:timeout] => :environment do |_, args|
|
|||
puts "Warming up Rails server"
|
||||
begin
|
||||
Net::HTTP.get(uri)
|
||||
rescue Errno::ECONNREFUSED
|
||||
rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL
|
||||
sleep 1
|
||||
retry unless elapsed() > 60
|
||||
puts "Timed out. Can no connect to forked server!"
|
||||
|
|
Loading…
Reference in New Issue