Skip to content

Commit

Permalink
test: add -race to go test to detect race
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Sun <[email protected]>
  • Loading branch information
allencloud committed May 10, 2018
1 parent 1313931 commit 8861e0b
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 8861e0b

Please sign in to comment.