diff --git a/pkg/tools/web_test.go b/pkg/tools/web_test.go index 9109d7a20..80c9a2067 100644 --- a/pkg/tools/web_test.go +++ b/pkg/tools/web_test.go @@ -675,8 +675,8 @@ func TestNewSafeDialContext_AllowsWhitelistedPrivateDNSResolution(t *testing.T) accepted := make(chan struct{}, 1) go func() { - conn, err := listener.Accept() - if err != nil { + conn, acceptErr := listener.Accept() + if acceptErr != nil { return } conn.Close()