Skip to content
  • Jean Boussier's avatar
    7b509694
    Call Executor#wrap around each test · 7b509694
    Jean Boussier authored
    It's `Rails.application.executor.wrap` that is responsible for
    clearing request/job local state such as `CurrentAttributes`.
    
    Instead of including an ad hoc helper to clear `CurrentAttributes` it's
    better to run the executor so we properly clear other states as well.
    
    However it means all executor hooks now need to be re-entrant.
    7b509694
    Call Executor#wrap around each test
    Jean Boussier authored
    It's `Rails.application.executor.wrap` that is responsible for
    clearing request/job local state such as `CurrentAttributes`.
    
    Instead of including an ad hoc helper to clear `CurrentAttributes` it's
    better to run the executor so we properly clear other states as well.
    
    However it means all executor hooks now need to be re-entrant.
Loading