mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-05 08:02:20 -08:00
The test closed a fixture listener and required the host's total listening port count to drop, which fails whenever another process opens a port between the two listings. Instead, check that the closed port itself is gone. Listen on the dual-stack wildcard at a port outside the ephemeral range so no other process holds or quickly reuses the same port number, and ignore entries owned by other known pids. It failed on the first run under flakestress before, and passes 36,585 runs now. Flake analysis: http://flakes/analyze-test?name=tailscale.com%2Fportlist.TestPortlistBackendChurn Updates #deflake Change-Id: I12faefb77e597a3480af1f7f7e3932911f94130d Signed-off-by: Brad Fitzpatrick <[email protected]>