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

Improve tests reliability #1342

Merged
merged 2 commits into from
Apr 29, 2022
Merged

Improve tests reliability #1342

merged 2 commits into from
Apr 29, 2022

Conversation

paskal
Copy link
Collaborator

@paskal paskal commented Apr 29, 2022

  • cleanup files in /tmp after integrational tests
  • call CloseIdleConnections on http clients, as without this go.uber.org/goleak reports leaking goroutine caused by HTTP client on many tests when ran one by one.

@paskal paskal requested a review from umputun as a code owner April 29, 2022 14:45
@paskal paskal added the backend label Apr 29, 2022
paskal added 2 commits April 29, 2022 16:54
Without this, go.uber.org/goleak reports
leaking goroutine caused by HTTP client
on many tests when ran one by one.
@paskal paskal force-pushed the paskal/tests_cleanup branch from 36149ea to 588cb4a Compare April 29, 2022 14:54
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2246072358

  • 14 of 14 (100.0%) changed or added relevant lines in 7 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.05%) to 84.068%

Files with Coverage Reduction New Missed Lines %
backend/app/cmd/cleanup.go 1 77.66%
Totals Coverage Status
Change from base Build 2224620814: 0.05%
Covered Lines: 6026
Relevant Lines: 7168

💛 - Coveralls

@umputun umputun merged commit 0c3053d into master Apr 29, 2022
@umputun umputun deleted the paskal/tests_cleanup branch April 29, 2022 15:51
@paskal paskal added this to the 1.9.1 milestone Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants