diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-04-17 01:10:45 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2019-04-17 01:10:45 +0200 |
commit | 99c520ac4af705145254f5c2c953e04e5fbb3f80 (patch) | |
tree | e563d96a1e43740e1943ef11ebb637a6ece55280 /railties/test/isolation | |
parent | f0b2a60536fdc63fc40055a45efd1c2e3ce63b99 (diff) | |
download | rails-99c520ac4af705145254f5c2c953e04e5fbb3f80.tar.gz rails-99c520ac4af705145254f5c2c953e04e5fbb3f80.tar.bz2 rails-99c520ac4af705145254f5c2c953e04e5fbb3f80.zip |
Only retry tests on CI
Diffstat (limited to 'railties/test/isolation')
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index 3fcfaa9623..fab704944b 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -18,7 +18,9 @@ require "active_support/testing/method_call_assertions" 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__) |