From 1a3206ceeb094cd65a6db745978875b17e9eaa37 Mon Sep 17 00:00:00 2001 From: David VIEJO Date: Thu, 8 Feb 2024 16:02:27 +0100 Subject: [PATCH] fix error in suite_test --- controllers/tests/suite_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/controllers/tests/suite_test.go b/controllers/tests/suite_test.go index 1276465e..2c18478c 100644 --- a/controllers/tests/suite_test.go +++ b/controllers/tests/suite_test.go @@ -19,7 +19,6 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "path/filepath" - "sigs.k8s.io/controller-runtime/pkg/envtest/printer" "k8s.io/client-go/dynamic" "k8s.io/client-go/kubernetes" @@ -31,10 +30,7 @@ import ( func TestAPIs(t *testing.T) { RegisterFailHandler(Fail) - RunSpecsWithDefaultAndCustomReporters(t, - "Controller Suite", - []Reporter{printer.NewlineReporter{}}, - ) + RunSpecs(t, "Controller Suite") } var cfg *rest.Config @@ -68,8 +64,7 @@ var _ = BeforeSuite(func(done Done) { k8sManager, err = ctrl.NewManager( cfg, ctrl.Options{ - Scheme: scheme.Scheme, - MetricsBindAddress: "0", + Scheme: scheme.Scheme, }, ) Expect(err).ToNot(HaveOccurred())