DEV Community

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

Collapse
 
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.

golang.org/doc/articles/race_detec...

Collapse
 
s0xzwasd profile image
Daniil Maslov

Good point, thanks for sharing :)