Enabled CGO in tests for the race detector
This commit is contained in:
parent
1e97e5d347
commit
eb4ac5e947
3
Makefile
3
Makefile
|
|
@ -92,7 +92,8 @@ errcheck:
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
go test -race ./...
|
# The race detector requires CGO: https://github.com/golang/go/issues/6508
|
||||||
|
CGO_ENABLED=1 go test -race ./...
|
||||||
|
|
||||||
.tmp/protoc/bin/protoc: ./Makefile ./download_protoc.sh
|
.tmp/protoc/bin/protoc: ./Makefile ./download_protoc.sh
|
||||||
./download_protoc.sh
|
./download_protoc.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue