mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-01 06:54:47 +03:00
dd46ab8e8b
The test added with #6972 built its ServerService with no public IP state, so GetStatus started the background lookup against the real IP-echo services and left it running after the test. Under the race job's shuffle, a public IP test that ran next replaced http.DefaultTransport while that goroutine was still reading it: DATA RACE in TestPublicIPRefreshIsSingleFlightAndKeepsCachedReadsAvailable (race on #6966, run 45442523620). Build the service the way the container-scope test does, with a cached address and no lookup due. A probe on GetStatus showed the lookup starting before and not after.