-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Ensure REST API server is shut down after test ends and check for goroutine leaks #2803
Conversation
3c041d2
to
ff2a8e4
Compare
5f953af
to
f523e37
Compare
Codecov Report
@@ Coverage Diff @@
## init-vus-with-context #2803 +/- ##
========================================================
Coverage ? 76.07%
========================================================
Files ? 213
Lines ? 16591
Branches ? 0
========================================================
Hits ? 12621
Misses ? 3197
Partials ? 773
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
ff2a8e4
to
dbde3c5
Compare
f523e37
to
1766cb7
Compare
dbde3c5
to
ed39495
Compare
1766cb7
to
2cb2c74
Compare
defer func() { | ||
// TODO: figure out why logrus' `Entry.WriterLevel` goroutine sticks | ||
// around and remove this exception. | ||
opt := goleak.IgnoreTopFunction("io.(*pipe).read") | ||
if err := goleak.Find(opt); err != nil { | ||
fmt.Println(err) //nolint:forbidigo | ||
exitCode = 3 | ||
} | ||
}() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I help here, I will take a look into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference, this will be resolved in #2833, which I think we should keep as a separate PR, rather than trying to merge it in this series of other PRs?
9c9e35f
to
a7ad53f
Compare
2cb2c74
to
2a9644a
Compare
2a9644a
to
eea76b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This depends on #2800