From 0a97e514b3d11826471bc14ce21e6dfe6493ec83 Mon Sep 17 00:00:00 2001 From: Nan Deng Date: Wed, 2 Jul 2014 17:35:38 -0700 Subject: [PATCH] turn on race detector by default --- hack/test-go.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/test-go.sh b/hack/test-go.sh index edb0018d9c7..2755c829637 100755 --- a/hack/test-go.sh +++ b/hack/test-go.sh @@ -39,10 +39,10 @@ find_test_dirs() { cd "${KUBE_TARGET}" if [ "$1" != "" ]; then - go test -cover -coverprofile="tmp.out" "$KUBE_GO_PACKAGE/$1" + go test -race -cover -coverprofile="tmp.out" "$KUBE_GO_PACKAGE/$1" exit 0 fi for package in $(find_test_dirs); do - go test -cover -coverprofile="tmp.out" "${KUBE_GO_PACKAGE}/${package}" + go test -race -cover -coverprofile="tmp.out" "${KUBE_GO_PACKAGE}/${package}" done