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 flakey when versioned test #2821

Merged
merged 5 commits into from
Dec 9, 2024
Merged

Conversation

bizob2828
Copy link
Member

@bizob2828 bizob2828 commented Dec 6, 2024

Details

This test is failing because it was asserting i took longer than the timeout but less than the delay. I have found in CI sometimes it's taking longer than the delay however, if it'd resolve the delay the test would fail so I'm removing the assertion to assert it takes less than the delay

Related Links

Closes #2826

@bizob2828 bizob2828 added the dev:tests Indicates only changes to tests label Dec 6, 2024
@bizob2828
Copy link
Member Author

This didn't fix the issue. In fact made it more confusing. I'll look more next week

@bizob2828 bizob2828 requested a review from jsumners-nr December 9, 2024 17:05
@bizob2828 bizob2828 changed the title test: Updated when test helper to rely on the appropriate object to do assertions test: Fixed flakey when versioned test Dec 9, 2024
@bizob2828 bizob2828 merged commit 54f034b into newrelic:main Dec 9, 2024
27 checks passed
@bizob2828 bizob2828 deleted the when-fix branch December 9, 2024 17:36
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.13%. Comparing base (298473c) to head (6e98083).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2821       +/-   ##
===========================================
+ Coverage   79.15%   97.13%   +17.97%     
===========================================
  Files         284      294       +10     
  Lines       45236    46403     +1167     
===========================================
+ Hits        35808    45074     +9266     
+ Misses       9428     1329     -8099     
Flag Coverage Δ
integration-tests-cjs-18.x 73.30% <ø> (?)
integration-tests-cjs-20.x 73.31% <ø> (?)
integration-tests-cjs-22.x 73.33% <ø> (?)
unit-tests-18.x 88.96% <ø> (?)
unit-tests-20.x 88.96% <ø> (?)
unit-tests-22.x 88.96% <ø> (?)
versioned-tests-18.x 78.95% <ø> (-0.20%) ⬇️
versioned-tests-20.x 78.96% <ø> (-0.20%) ⬇️
versioned-tests-22.x 78.96% <ø> (-0.20%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot mentioned this pull request Dec 9, 2024
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
Status: Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

Fix flakey when versioned test
2 participants