aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/test_test.rb
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2018-02-16 08:09:02 -0500
committerGitHub <noreply@github.com>2018-02-16 08:09:02 -0500
commit7286d81312be3be925e6ba35823daa9910c6ab46 (patch)
tree4c489fef54f52b79daf28dbe94ee8b8215665c77 /railties/test/application/test_test.rb
parent23c5558f37c2c55807e7603415214f2b4b7b22c1 (diff)
parent26821d9b572815a39c8ecb2e19375b2abff68730 (diff)
downloadrails-7286d81312be3be925e6ba35823daa9910c6ab46.tar.gz
rails-7286d81312be3be925e6ba35823daa9910c6ab46.tar.bz2
rails-7286d81312be3be925e6ba35823daa9910c6ab46.zip
Merge pull request #31900 from eileencodes/parallel-testing
Parallel testing
Diffstat (limited to 'railties/test/application/test_test.rb')
-rw-r--r--railties/test/application/test_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/application/test_test.rb b/railties/test/application/test_test.rb
index 0a51e98656..fb43bebfbe 100644
--- a/railties/test/application/test_test.rb
+++ b/railties/test/application/test_test.rb
@@ -7,10 +7,15 @@ module ApplicationTests
include ActiveSupport::Testing::Isolation
def setup
+ @old = ENV["PARALLEL_WORKERS"]
+ ENV["PARALLEL_WORKERS"] = "0"
+
build_app
end
def teardown
+ ENV["PARALLEL_WORKERS"] = @old
+
teardown_app
end