From 6349baf044aee4ec526838c8e0b48dd676a83726 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Wed, 10 Aug 2016 23:00:32 -0700 Subject: [PATCH] *: fix testing with the race detector --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4e188cca..20b7ce10 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ test: @go test $(shell go list ./... | grep -v '/vendor/') testrace: - @go test --race $(shell go list ./... | grep -v '/vendor/') + @CGO_ENABLED=1 go test --race $(shell go list ./... | grep -v '/vendor/') vet: @go vet $(shell go list ./... | grep -v '/vendor/')