Files
magpie/internal
yetone b641868eb3 gateway: TestHeldClock passes each zone in instead of writing time.Local (#2949)
CI run 39242954115 (b749cffbb, ubuntu Race) went red on a data race:
TestHeldClock assigned time.Local per zone while a goroutine left by an
earlier gateway test (restAfterMarked -> narrowWhenRead) called time.Now,
which reads time.Local. heldClock now delegates to heldClockIn(t, now,
loc), and the test calls heldClockIn with the zone, so nothing writes
time.Local. Callers are unchanged.

Run: go test -race -run 'TestHeldClock|TestZhipu' -count=3
./internal/gateway/ ok; GOOS=linux go vet -tags nogui and GOOS=windows
go vet of internal/gateway ok; gofmt -l clean. The race itself was not
reproduced locally (it needs the stray goroutine's timing); the test no
longer writes the global the race trace names.
2026-10-19 19:55:11 +08:00
..
…
…