DEV Community

Discussion on: Run tests with -race flag in GoLand 🏎

biros profile image
Boris Jamot ✊ /

Please note that the race detector only finds races that happen at runtime, so it can't find races in code paths that are not executed. If your tests have incomplete coverage, you may find more races by running a binary built with -race under a realistic workload.

s0xzwasd profile image
Daniil Maslov Author

Good point, thanks for sharing :)