You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
Currently there is no way to stop the defaultWorker goroutine in the go.opencensus.io/stats/view/ package.
This breaks adding a Goroutine leak detector to unit tests in packages that import the view package as it will always fail:
goleak: Errors on successful test run: found unexpected goroutines:
[Goroutine 21 in state select, with go.opencensus.io/stats/view.(*worker).start on top of the stack:
goroutine 21 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc000272000)
/home/user/go/pkg/mod/[email protected]/stats/view/worker.go:276 +0x157
created by go.opencensus.io/stats/view.init.0
/home/user/go/pkg/mod/[email protected]/stats/view/worker.go:34 +0x87
The text was updated successfully, but these errors were encountered:
This issue has been closed even though the fix isn't tagged for any release.
And just FYI, this fix cannot work with VerifyTestMain since you cannot trigger a cleanup before checking for leaks. You must basically reimplement it:
Currently there is no way to stop the
defaultWorker
goroutine in thego.opencensus.io/stats/view/
package.This breaks adding a Goroutine leak detector to unit tests in packages that import the view package as it will always fail:
The text was updated successfully, but these errors were encountered: