test(mirror): fix data race in serveMirrorList helper

main

Commit

toothbrush3mo ago

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

Add Mirror List Command Tests

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1