Merge pull request #4995 from davidtaylorhq/qunit-warmup

Improve “server warmup” check for qunit rake task
This commit is contained in:
Sam 2017-07-25 11:39:32 -04:00 committed by GitHub
commit 400a55eca3
1 changed files with 1 additions and 1 deletions

View File

@ -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!"