Fix some unit tests to they pass with -race
Fix a couple of unit tests so they pass with -race
enabled. Not that the concurrency problems were in the tests themselves, not in the production code. Also add a make target and CI job to run tests with -race
enabled.
Test with
> make test-race
Edited by Axel von Bertoldi