Skip to content

Commit

Permalink
Merge pull request #2330 from newrelic/perform_all_later
Browse files Browse the repository at this point in the history
Test ActiveJob `perform_all_later`
  • Loading branch information
hannahramadan authored Nov 22, 2023
2 parents 093c239 + 987ec5c commit e4f2bba
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit e4f2bba

Please sign in to comment.