Stop retrying tests three times if qunit tests fail

Warming up the Rails server should be enough
This commit is contained in:
Gerhard Schlager 2018-03-12 12:39:24 +01:00
parent 345b453ee1
commit ec3a2d2762

View File

@ -86,16 +86,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
end
puts "Rails server is warmed up"
# wait for server to respond, will exception out on failure
tries = 0
begin
sh(cmd)
rescue
exit if ENV['RETRY'].present? && ENV['RETRY'] == 'false'
sleep 2
tries += 1
retry unless tries == 3
end
sh(cmd)
# A bit of a hack until we can figure this out on Travis
tries = 0