Skip to content

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

Stop retrying tests three times if qunit tests fail

Gerhard Schlagerec3a2d276277
diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rake
index b45b817f683..d4d90299329 100644
--- a/lib/tasks/qunit.rake
+++ b/lib/tasks/qunit.rake
@@ -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