Skip to content

Conversation

@ydah
Copy link
Contributor

@ydah ydah commented Dec 25, 2025

Overview

This PR fixing warning when run test.

❯ bundle exec rake
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/configuration/default_source_test.rb:313: warning: assigned but unused variable - default
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/configuration/sampler_config_validator_test.rb:46: warning: assigned but unused variable - config_value
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/datastores_test.rb:188: warning: assigned but unused variable - elapsed
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/transaction/distributed_tracing_test.rb:590: warning: assigned but unused variable - parent_priority
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/transaction/distributed_tracing_test.rb:663: warning: assigned but unused variable - parent_sampled
/Users/ydah/newrelic-ruby-agent/test/new_relic/dependency_detection_test.rb:477: warning: assigned but unused variable - execution_took_place
/Users/ydah/newrelic-ruby-agent/test/new_relic/newrelicyml_test.rb:115: warning: assigned but unused variable - config_hash

Submitter Checklist:

  • [-] Include a link to the related GitHub issue, if applicable
  • [-] Add new tests for your change, if applicable

Testing

The agent includes a suite of unit and functional tests which should be used to
verify your changes don't break existing functionality. These tests will run with
GitHub Actions when a pull request is made. More details on running the tests locally can be found
here for our unit tests,
and here for our functional tests.
For most contributions it is strongly recommended to add additional tests which
exercise your changes.

Reviewer Checklist

  • Perform code review
  • Confirm all checks passed
  • Open a separate PR to add a CHANGELOG entry

This PR fixing warning when run test.

```
❯ bundle exec rake
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/configuration/default_source_test.rb:313: warning: assigned but unused variable - default
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/configuration/sampler_config_validator_test.rb:46: warning: assigned but unused variable - config_value
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/datastores_test.rb:188: warning: assigned but unused variable - elapsed
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/transaction/distributed_tracing_test.rb:590: warning: assigned but unused variable - parent_priority
/Users/ydah/newrelic-ruby-agent/test/new_relic/agent/transaction/distributed_tracing_test.rb:663: warning: assigned but unused variable - parent_sampled
/Users/ydah/newrelic-ruby-agent/test/new_relic/dependency_detection_test.rb:477: warning: assigned but unused variable - execution_took_place
/Users/ydah/newrelic-ruby-agent/test/new_relic/newrelicyml_test.rb:115: warning: assigned but unused variable - config_hash
```
@ydah ydah requested a review from a team as a code owner December 25, 2025 18:52
@github-actions github-actions bot added the community To tag external issues and PRs submitted by the community label Dec 25, 2025
hannahramadan
hannahramadan previously approved these changes Dec 31, 2025
Copy link
Contributor

@hannahramadan hannahramadan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this cleanup 🫧

@hannahramadan hannahramadan merged commit 50e5872 into newrelic:dev Dec 31, 2025
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community To tag external issues and PRs submitted by the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants