chore: Add test-race make target
Description
Since CLI project uses concurrency via goroutines, it is possible for race conditions to occur.
In order to prevent that, we can utilize Go's built-in race detector (https://go.dev/blog/race-detector).
This adds make test-race
target that runs test with race detection.
Related Issues
Resolves #[issue_number]
How has this been tested?
Run make test-race
and it should be successful.
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)