Summary #
- Replace wall-clock
time.Sleepand short millisecond timeout workarounds in/healthcache TTL and timeout tests with deterministictesting/synctestvirtual time (synctest.Test) using realistic production durations (30sTTL andDefaultHealthTimeout). - Add concurrent cold-cache
/healthcoverage verifying simultaneous requests queryRunner.Versiononce without data races. - Decode and assert complete
/healthJSON response payloads (status, exactversion.String(),beets_version,error,omitemptyomissions, andContent-Type). - Replace abbreviated identifiers (
srv,req,rec,contextErr) with full descriptive names.