diff --git a/Makefile b/Makefile index 60bbe8f84..2d1a9a3a4 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ vet: ## Run go vet against code. go vet ./... .PHONY: test -test: manifests generate envtest vet fmt test-container-builder test-workflowproj ## Run tests. +test: manifests generate envtest vet fmt test-workflowproj ## Run tests. KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $(shell go list ./... | grep -v /test/) -coverprofile cover.out .PHONY: test-container-builder diff --git a/controllers/profiles/reconciler_dev_test.go b/controllers/profiles/reconciler_dev_test.go index 9e6f6f4f6..a2562cce1 100644 --- a/controllers/profiles/reconciler_dev_test.go +++ b/controllers/profiles/reconciler_dev_test.go @@ -46,7 +46,7 @@ func Test_OverrideStartupProbe(t *testing.T) { logger := ctrllog.FromContext(context.TODO()) workflow := test.GetKogitoServerlessWorkflow("../../config/samples/"+test.KogitoServerlessWorkflowSampleYamlCR, t.Name()) - client := test.NewKogitoClientBuilder().WithRuntimeObjects(workflow).Build() + client := test.NewKogitoClientBuilder().WithRuntimeObjects(workflow).WithStatusSubresource(workflow).Build() config := &rest.Config{} devReconciler := newDevProfileReconciler(client, config, &logger)