test(mirror): fix data race in serveMirrorList helper
main·
Commit

The recorded request was written by the handler goroutine and read by the test goroutine with no happens-before edge (HTTP completion isn't one the race detector recognises). Deliver it over a buffered channel and receive after the command runs, matching the pattern in TestBearerOnlySource_NoCookieOnTheWire.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: b81196ddacdf
Checkpoints
Checkpoint 1