Skip to content

Commit

Permalink
Only retry tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Apr 16, 2019
1 parent f0b2a60 commit 99c520a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion railties/test/isolation/abstract_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
require "active_support/test_case"
require "minitest/retry"

Minitest::Retry.use!(verbose: false, retry_count: 1)
if ENV["BUILDKITE"]
Minitest::Retry.use!(verbose: false, retry_count: 1)
end

RAILS_FRAMEWORK_ROOT = File.expand_path("../../..", __dir__)

Expand Down

0 comments on commit 99c520a

Please sign in to comment.