Skip to content

Commit 355e2e2

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

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.
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)