tailscale/net/captivedetection
Avery Pennarun ebbf47ca1a fix flaky tests: make code more testable and fix race conditions
Changes to support flaky test fixes:

- kube/services: add SetWaitDurationForTest() to avoid hardcoded 20s wait
- net/netcheck: check context before captive portal detection
- net/captivedetection: stop timer before waiting on channel
- util/eventbus/eventbustest: use sync.Once to prevent double-close
- cmd/tailscale/cli: fix noDupFlagify to handle repeated test runs

Change-Id: I9c4af6996c7ff809df5fa8211c4de39a0a9183c9
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
2026-04-13 17:28:15 +02:00
..
captivedetection_test.go all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
captivedetection.go fix flaky tests: make code more testable and fix race conditions 2026-04-13 17:28:15 +02:00
endpoints.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
rawconn_apple.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
rawconn.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00