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:
@@ -0,0 +1,6 @@
|
||||
//go:build race
|
||||
|
||||
package evidence
|
||||
|
||||
// raceDetectorEnabled is true when the binary is built with -race.
|
||||
const raceDetectorEnabled = true
|
||||
Reference in New Issue
Block a user