M1: make evidence tests race-clean

Rewrite TestFakeSourceEmits to synchronize through a channel (it now
asserts emission instead of racing on a shared slice and discarding it).
Skip the live X11 smoke test under -race: xgbutil's event loop has an
internal Quit/Quitting race on shutdown that is never reached in
production (Watch runs under a never-cancelled context.Background()).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 12:57:50 -04:00
parent f286609ec0
commit ed5085ab6b
4 changed files with 39 additions and 7 deletions
+6
View File
@@ -0,0 +1,6 @@
//go:build !race
package evidence
// raceDetectorEnabled is true when the binary is built with -race.
const raceDetectorEnabled = false