Files
headscale/hscontrol/derp/derp_test.go
copilot-swe-agent[bot] 1980ee6ca4 Fix TestShuffleDERPMapDeterministic flakiness by ensuring deterministic region iteration
The test was flaky because Go's map iteration order is non-deterministic. Even with a fixed random seed, shuffling regions in different orders produces different results since each shuffle advances the RNG state.

Solution: Sort region IDs before iterating to ensure consistent shuffle order across all test runs.

Co-authored-by: kradalby <98431+kradalby@users.noreply.github.com>
2025-11-01 07:13:55 +00:00

7.6 KiB