Add race condition check for tests
This commit is contained in:
parent
38378d2c8c
commit
a901e8cdbf
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
echo "" > coverage.txt
|
echo "" > coverage.txt
|
||||||
|
|
||||||
for d in $(go list ./... | grep -v vendor); do
|
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
|
if [ -f profile.out ]; then
|
||||||
cat profile.out >> coverage.txt
|
cat profile.out >> coverage.txt
|
||||||
rm profile.out
|
rm profile.out
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue