Skip to content

Commit

Permalink
Fix unit test with subresource
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zanini <zanini@redhat.com>
  • Loading branch information
ricardozanini committed Jun 2, 2023
1 parent ef174a7 commit 8b5e4cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion controllers/profiles/reconciler_dev_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b5e4cd

Please sign in to comment.