mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-20 09:46:01 -05:00
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>