tailscale/client
Brad Fitzpatrick 7b5b9f5ce2 client/web: fix nil metricCapture crash in mockLocalAPI
The upload-client-metrics handler called metricCapture without
checking if it was nil or if the metrics slice was empty. Most
tests pass nil for metricCapture, so if a metrics upload races
in during the test, it panics.

Fixes #19252

Change-Id: Ib904d1fe6779067dc2a153d1680b8f50cba9c773
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2026-04-05 20:20:07 -07:00
..
freedesktop cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
local tka: refer consistently to "DisablementValues" 2026-04-01 19:09:22 +01:00
systray all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
tailscale cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
web client/web: fix nil metricCapture crash in mockLocalAPI 2026-04-05 20:20:07 -07:00