From 68cdb9bdc2507031e33967cf71215de0071e957b Mon Sep 17 00:00:00 2001 From: fallwith Date: Thu, 14 Sep 2023 21:39:24 -0700 Subject: [PATCH] perf tests: fix arg passing - now that we wrap the perf tests in a Rails wrapper, the outer `ARGV` needs to be passed to the inner one - fix straggler that wasn't previously converted to use an iteration count --- test/performance/script/runner | 2 +- test/performance/suites/agent_module.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/performance/script/runner b/test/performance/script/runner index 0c420bf8bb..a5a240d104 100755 --- a/test/performance/script/runner +++ b/test/performance/script/runner @@ -9,4 +9,4 @@ require_relative '../rails_app/config/boot' require 'rails/command' require_relative '../lib/performance' -Rails::Command.invoke(:runner, %w[Performance::Runner.new.run_and_report]) +Rails::Command.invoke(:runner, %w[Performance::Runner.new.run_and_report] + ARGV) diff --git a/test/performance/suites/agent_module.rb b/test/performance/suites/agent_module.rb index 9f1be5f97f..5c9e1bc7ea 100644 --- a/test/performance/suites/agent_module.rb +++ b/test/performance/suites/agent_module.rb @@ -9,7 +9,7 @@ class AgentModuleTest < Performance::TestCase ITERATIONS = 50_000 def test_increment_metric_by_1 - measure do + measure(ITERATIONS) do NewRelic::Agent.increment_metric(METRIC) end end