Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96bba93

Browse files
committed
fix: ignore goroutine leak for protocol lookup on windows
1 parentc9ed0dd commit96bba93

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
varGoleakOptions []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)

[8]ページ先頭

©2009-2025 Movatter.jp