Improve “server warmup” check for qunit rake task

This commit is contained in:
David Taylor 2017-07-25 16:31:30 +01:00
parent 5166b5460a
commit 4ad864892b
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!"