Skip to content

Commit 96bba93

Browse files
committed
fix: ignore goroutine leak for protocol lookup on windows
1 parent c9ed0dd commit 96bba93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testutil/goleak.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import "go.uber.org/goleak"
55
// GoleakOptions is a common list of options to pass to goleak. This is useful if there is a known
66
// leaky function we want to exclude from goleak.
77
var GoleakOptions []goleak.Option = []goleak.Option{
8+
// Go spawns a goroutine to lookup the protocol when run on
9+
// windows. See https://go.dev/src/net/lookup_windows.go#L56
10+
goleak.IgnoreAnyFunction("net.lookupProtocol.func1"),
811
// seelog (indirect dependency of dd-trace-go) has a known goroutine leak (https://github.com/cihub/seelog/issues/182)
912
// When https://github.com/DataDog/dd-trace-go/issues/2987 is resolved, this can be removed.
1013
goleak.IgnoreAnyFunction("github.com/cihub/seelog.(*asyncLoopLogger).processQueue"),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy