Skip to content

Commit

Permalink
Merge pull request #1294 from allencloud/add-race
Browse files Browse the repository at this point in the history
test: add -race to go test to detect race
  • Loading branch information
HusterWan authored May 10, 2018
2 parents 49302b7 + 8861e0b commit 7fadec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fadec9

Please sign in to comment.