Skip to content

Commit

Permalink
Merge pull request #1888 from jkaniuk/race-test-1.14
Browse files Browse the repository at this point in the history
Enable race detection in unit tests (CA 1.14)
  • Loading branch information
k8s-ci-robot authored Apr 12, 2019
2 parents a8cea4a + 7699e9e commit 902c7d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cluster-autoscaler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ container: build-in-docker make-image
@echo "Created in-docker image ${TAG}${FOR_PROVIDER}"

test-in-docker: clean docker-builder
docker run -v `pwd`:/gopath/src/k8s.io/autoscaler/cluster-autoscaler/ autoscaling-builder:latest bash -c 'cd /gopath/src/k8s.io/autoscaler/cluster-autoscaler && godep go test ./... ${TAGS_FLAG}'
docker run -v `pwd`:/gopath/src/k8s.io/autoscaler/cluster-autoscaler/ autoscaling-builder:latest bash -c 'cd /gopath/src/k8s.io/autoscaler/cluster-autoscaler && godep go test -race ./... ${TAGS_FLAG}'

.PHONY: all deps build test-unit clean format execute-release dev-release docker-builder build-in-docker release generate

2 changes: 1 addition & 1 deletion hack/for-go-proj.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ for godep_file in ${godep_projects}; do
cd "${project}"
case "${CMD}" in
"test")
godep go "${CMD}" $(go list ./... | grep -v /vendor/ | grep -v vertical-pod-autoscaler/e2e )
godep go test -race $(go list ./... | grep -v /vendor/ | grep -v vertical-pod-autoscaler/e2e )
;;
*)
godep go "${CMD}" ./...
Expand Down

0 comments on commit 902c7d2

Please sign in to comment.