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: use mock transport to avoid many hanging worker routines #698

Merged
merged 2 commits into from Aug 14, 2023

Conversation

vaind
Copy link
Collaborator

@vaind vaind commented Aug 11, 2023

I've noticed there are many HTTP transport worker goroutines running during tests (34 currently), and it was causing me some trouble when debugging profiling tests.
This PR reduces the use of actual HTTP transport to tests that need to test it. Replaces with mock transport elsewhere.
Unfortunately, I can't get rid of all the hanging goroutines because of how the HTTPTransport worker is implemented - there's no way to stop the routine at the moment.

@vaind vaind requested a review from tonyo August 11, 2023 17:21
@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.07% ⚠️

Comparison is base (41f45b5) 80.85% compared to head (744911f) 80.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #698      +/-   ##
==========================================
- Coverage   80.85%   80.78%   -0.07%     
==========================================
  Files          44       44              
  Lines        4466     4466              
==========================================
- Hits         3611     3608       -3     
- Misses        726      728       +2     
- Partials      129      130       +1     

see 1 file with indirect coverage changes

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

Copy link
Member

@tonyo tonyo left a comment

Choose a reason for hiding this comment

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

Let's do it 👍

@vaind vaind merged commit 34ce12e into master Aug 14, 2023
17 checks passed
@vaind vaind deleted the test/use-mock-transport branch August 14, 2023 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants