mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Stop retrying tests three times if qunit tests fail
Warming up the Rails server should be enough
This commit is contained in:
parent
345b453ee1
commit
ec3a2d2762
@ -86,16 +86,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
|
|||||||
end
|
end
|
||||||
puts "Rails server is warmed up"
|
puts "Rails server is warmed up"
|
||||||
|
|
||||||
# wait for server to respond, will exception out on failure
|
sh(cmd)
|
||||||
tries = 0
|
|
||||||
begin
|
|
||||||
sh(cmd)
|
|
||||||
rescue
|
|
||||||
exit if ENV['RETRY'].present? && ENV['RETRY'] == 'false'
|
|
||||||
sleep 2
|
|
||||||
tries += 1
|
|
||||||
retry unless tries == 3
|
|
||||||
end
|
|
||||||
|
|
||||||
# A bit of a hack until we can figure this out on Travis
|
# A bit of a hack until we can figure this out on Travis
|
||||||
tries = 0
|
tries = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user