You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f3a77ca
Browse filesBrowse the repository at this point in the historyBrowse files
test: read a served package's stderr under a lock, and wait for its diagnostics
The harness writes its diagnostics from its own thread, after the answer
has gone, so TestAnInstalledPackageRefusesACallWithNoIdentity read stderr
before the refusal reached it and failed intermittently. The capture was
also a bare strings.Builder written by exec's copy goroutine while the test
read it, a data race under -race.
The capture is now a mutex-guarded writer, and the one assertion on its
content waits for the diagnostic with require.Eventually. The other reads
only print it in a failure message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments