Add race condition check for tests

This commit is contained in:
Jannis Mattheis 2018-02-03 16:50:16 +01:00 committed by Jannis Mattheis
parent 38378d2c8c
commit a901e8cdbf
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -v -coverprofile=profile.out -covermode=atomic $d
go test -v -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out