TestHostInstallActivatesVersionAndMarksReady waited for the row to reach ready and then read the fake tree and installer. runHostInstall records ready while it still holds the skill lock; pruning old versions, unbinding the install session and unlocking come after, so the test could observe tree.pruned as nil or installer.bound still populated, and the race detector reported the unsynchronised reads. The fake tree now counts runs between Lock and unlock, and the wait helpers block until no run holds it. The run unlocks last, so everything it wrote is visible once the wait returns. waitRemoveDone had the same gap (the row is deleted before the stale marks are recorded) and uses the same wait. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| access | ||
| repository | ||
| service | ||