test(lib): add go.opencensus.io/stats/view to knownLeaks

Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
Dwi Siswanto 2024-12-11 01:23:51 +07:00
parent e84048c153
commit 46b94050d9
No known key found for this signature in database
GPG Key ID: 3BB198907EF44CED

View File

@ -19,6 +19,9 @@ var knownLeaks = []goleak.Option{
// net/http transport maintains idle connections which are closed with cooldown
// hence they don't count as leaks
goleak.IgnoreAnyFunction("net/http.(*http2ClientConn).readLoop"),
// NOTE(dwisiswant0): This is an indirect call and not used anywhere, not
// even within SOPS (#5841). See `go mod why go.opencensus.io/stats/view`.
goleak.IgnoreAnyContainingPkg("go.opencensus.io/stats/view"),
}
func TestSimpleNuclei(t *testing.T) {