Skip to content

Commit

Permalink
test: add --race to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCai1111 committed Feb 15, 2018
1 parent 3f8d9a0 commit 80adcbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ before_install:
- go get github.com/mattn/goveralls

script:
- go test -coverprofile=json-mask.coverprofile
- go test -coverprofile=json-mask.coverprofile --race
- goveralls -coverprofile=json-mask.coverprofile -service=travis-ci
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
test:
go test -v
go test -v --race

cover:
@rm -rf *.coverprofile
go test -coverprofile=json-mask.coverprofile -v
go test -coverprofile=json-mask.coverprofile -v --race
gover
go tool cover -html=json-mask.coverprofile

0 comments on commit 80adcbd

Please sign in to comment.