Run tests in CircleCI with race detector
@@ -33,8 +33,8 @@ jobs:
- run:
name: Test
command: |
- go test -v . # Run tests in root but exclude from coverage
- go test -v -coverprofile=coverage.txt.tmp ./server/...
+ go test -v -race . # Run tests in root but exclude from coverage
+ go test -v -race -coverprofile=coverage.txt.tmp ./server/...
cat coverage.txt.tmp | grep -v ".pb.go" > coverage.txt # Exclude protobuf from coverage
goveralls -coverprofile=coverage.txt -service=circle-ci -repotoken=$COVERALLS_REPO_TOKEN
