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: Fixed shadowed variable lint error in pino versioned tests #1859

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

jsumners-nr
Copy link
Contributor

This PR removes a lint error complaining about a "logger" variable being redeclared in a subtest. Here, we refactor the tests to use variables from the subtest private context to avoid any potential side effects between tests and remove the lint error.

This PR removes a lint error complaining about a "logger" variable
being redeclared in a subtest. Here, we refactor the tests to use
variables from the subtest private context to avoid any potential
side effects between tests and remove the lint error.
@jsumners-nr jsumners-nr added the dev:tests Indicates only changes to tests label Nov 10, 2023
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Merging #1859 (9f1f9ba) into main (08b5a78) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1859   +/-   ##
=======================================
  Coverage   96.83%   96.83%           
=======================================
  Files         200      200           
  Lines       39074    39074           
=======================================
  Hits        37839    37839           
  Misses       1235     1235           
Flag Coverage Δ
integration-tests-16.x 78.94% <ø> (+<0.01%) ⬆️
integration-tests-18.x 79.22% <ø> (ø)
integration-tests-20.x 79.23% <ø> (ø)
unit-tests-16.x 91.35% <ø> (ø)
unit-tests-18.x 91.33% <ø> (ø)
unit-tests-20.x 91.33% <ø> (ø)
versioned-tests-16.x 73.14% <ø> (-0.01%) ⬇️
versioned-tests-18.x 73.15% <ø> (-0.01%) ⬇️
versioned-tests-20.x 73.16% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@bizob2828 bizob2828 changed the title chore: Fix shadowed variable lint error test: Fixed shadowed variable lint error in pino versioned tests Nov 10, 2023
@jsumners-nr jsumners-nr merged commit e1b21eb into newrelic:main Nov 10, 2023
24 checks passed
@jsumners-nr jsumners-nr deleted the shadow-fix branch November 10, 2023 21:00
@github-actions github-actions bot mentioned this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:tests Indicates only changes to tests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants