Is there a way to disable the data race checking in a compiled test binary?
Sometimes I want to specifically exclude binaries in my test suite. Of course I could just not run it with go test -race
but I'd have to rewrite part of our test pipeline and thus selectively disabling on a binary would make more sense.
If the reason is that you want to not fail on the race detector, then use