mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Retry on read timeouts while warming up for qunit tests
This commit is contained in:
parent
74c4af279a
commit
a024e5e9ac
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
|
||||||
puts "Warming up Rails server"
|
puts "Warming up Rails server"
|
||||||
begin
|
begin
|
||||||
Net::HTTP.get(uri)
|
Net::HTTP.get(uri)
|
||||||
rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL
|
rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL, Net::ReadTimeout
|
||||||
sleep 1
|
sleep 1
|
||||||
retry unless elapsed() > 60
|
retry unless elapsed() > 60
|
||||||
puts "Timed out. Can no connect to forked server!"
|
puts "Timed out. Can no connect to forked server!"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue