From: Tom Hughes Date: Thu, 17 Feb 2022 19:30:19 +0000 (+0000) Subject: Wrap test execution for better isolation X-Git-Tag: live~2179 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/fbd45a2ea085cd8a7c234158ddd4910539595b7d Wrap test execution for better isolation --- diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index a67a2c862..ccf2fcd11 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -45,7 +45,7 @@ Rails.application.config.active_support.cache_format_version = 7.0 # This makes test cases behave closer to an actual request or job. # Several features that are normally disabled in test, such as Active Record query cache # and asynchronous queries will then be enabled. -# Rails.application.config.active_support.executor_around_test_case = true +Rails.application.config.active_support.executor_around_test_case = true # Define the isolation level of most of Rails internal state. # If you use a fiber based server or job processor, you should set it to `:fiber`.