mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
4d7c89fec3
In an earlier commit, we made it possible to run the e2e tests with the race detector enabled everywhere via GOFLAGS=-race go test. However, that's not at all standard; most users will simply use 'go test -race'. Moreover, having 'go test -race' run the test program with the race detector, but not the e2e gio app, is a bit useless. Instead, have the tests detect when they run with the race detector, and enable the race detector in the test app too. As before, the JS test is skipped whenever -race is used. This also means we can test with -race in the same way in each of the modules, which simplifies CI. Signed-off-by: Daniel Martí <mvdan@mvdan.cc>