module ActionController::TestCase::Behavior

def wrap_execution(&block)

def wrap_execution(&block)
  if ActionController::TestCase.executor_around_each_request && defined?(Rails.application) && Rails.application
    Rails.application.executor.wrap(&block)
  else
    yield
  end
end