Skip to content

Commit

Permalink
Merge pull request rails#45624 from sambostock/clear-job-buffer-on-te…
Browse files Browse the repository at this point in the history
…ardown

Clear `JobBuffer` on `ActiveJob` test teardown
  • Loading branch information
eileencodes authored Jul 19, 2022
2 parents 9596ec9 + eb4b540 commit a731c92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions activejob/test/support/job_buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ def last_value
end
end
end

class ActiveSupport::TestCase
teardown do
JobBuffer.clear
end
end

0 comments on commit a731c92

Please sign in to comment.