From 8d4c16fc599c5935ddcba47058522a1a4722d25f Mon Sep 17 00:00:00 2001 From: Neo2308 Date: Thu, 7 Sep 2023 11:32:42 +0530 Subject: [PATCH] Fix unit test failure Signed-off-by: Neo2308 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2823e9d3d37..0836a636b88 100644 --- a/Makefile +++ b/Makefile @@ -159,7 +159,7 @@ TEST_PKGS = $(shell go list ./... | grep -v -E 'github.com/operator-framework/op KUBEBUILDER_ASSETS = $(PWD)/$(shell go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest && $(shell go env GOPATH)/bin/setup-envtest use $(K8S_VERSION) --bin-dir tools/bin/ -p path) test-unit: ## Run unit tests - go test -coverprofile=coverage.out -covermode=count -short $(TEST_PKGS) + KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS) go test -coverprofile=coverage.out -covermode=count -short $(TEST_PKGS) e2e_tests := test-e2e-go test-e2e-ansible test-e2e-ansible-molecule test-e2e-helm test-e2e-integration e2e_targets := test-e2e $(e2e_tests)