Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test ActiveJob perform_all_later #2330

Merged
merged 10 commits into from
Nov 22, 2023
10 changes: 10 additions & 0 deletions test/multiverse/suites/rails/activejob_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ def test_record_perform_metrics_in_web
assert_metrics_recorded("#{PERFORM_PREFIX}/default")
end

def test_record_perform_all_later_metrics_in_web
skip if Gem::Version.new(Rails::VERSION::STRING) < Gem::Version.new('7.1.0')

in_web_transaction do
ActiveJob.perform_all_later(MyJob.new, MyJob.new, MyJob.new)
end

assert_metrics_recorded("#{PERFORM_PREFIX}/default")
end

def test_record_perform_metrics_with_alternate_queue_in_web
in_web_transaction do
MyJobWithAlternateQueue.perform_later
Expand Down
Loading