Skip to content

Commit

Permalink
serverless tests: require Ruby 3.2+ for 12 types
Browse files Browse the repository at this point in the history
for the dozen AWS resources under test, require Ruby 3.2+
  • Loading branch information
fallwith committed Aug 14, 2024
1 parent 4677f2e commit af5a204
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/new_relic/agent/serverless_handler_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ def test_reports_web_attributes_for_api_gateway_v2

EVENT_SOURCES.each do |type, info|
define_method(:"test_event_type_#{type}") do
skip 'This serverless test is limited to Ruby v3.2+' unless ruby_version_float >= 3.2

output = with_output do
handler.invoke_lambda_function_with_new_relic(method_name: :customer_lambda_function,
event: info['event'],
Expand Down

0 comments on commit af5a204

Please sign in to comment.