diff --git a/hack/build b/hack/build index b46c873d4..e51813612 100755 --- a/hack/build +++ b/hack/build @@ -53,7 +53,7 @@ function unit-test() go test -i for d in `go list ./... | grep -v 'github.com/alibaba/pouch/test' | grep -v 'github.com/alibaba/pouch/extra' | grep -v 'github.com/alibaba/pouch/vendor' ` do - go test -coverprofile=profile.out -covermode=atomic $d + go test -race -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ] ; then cat profile.out >> coverage.txt rm profile.out >/dev/null 2>&1