Skip to content

A platform for community discussion. Free, open, simple.

Retry on read timeouts while warming up for qunit tests

Gerhard Schlagera024e5e9ac01
diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rake
index d4d90299329..884cc696304 100644
--- a/lib/tasks/qunit.rake
+++ b/lib/tasks/qunit.rake
@@ -78,7 +78,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
puts "Warming up Rails server"
begin
Net::HTTP.get(uri)
- rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL
+ rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL, Net::ReadTimeout
sleep 1
retry unless elapsed() > 60
puts "Timed out. Can no connect to forked server!"