all: apply go fix

Updates #cleanup

Signed-off-by: Adriano Sela Aviles <adriano@tailscale.com>
This commit is contained in:
Adriano Sela Aviles
2026-07-10 17:39:16 -07:00
committed by Adriano Sela Aviles
parent a5102d3fcb
commit d69bf2685a
26 changed files with 44 additions and 95 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func init() {
func breakTCPConnsDarwin() error {
var matched int
for fd := 0; fd < 1000; fd++ {
for fd := range 1000 {
_, err := unix.GetsockoptTCPConnectionInfo(fd, unix.IPPROTO_TCP, unix.TCP_CONNECTION_INFO)
if err == nil {
matched++
+1 -2
View File
@@ -2123,8 +2123,7 @@ func TestWatchNotificationsCallbacks(t *testing.T) {
func TestWatchNotificationsClosesSlowConsumer(t *testing.T) {
b := newTestLocalBackend(t)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ctx := t.Context()
watchAdded := make(chan struct{})
firstNotify := make(chan struct{}, 1)