Skip to content

Commit

Permalink
fix error in suite_test
Browse files Browse the repository at this point in the history
  • Loading branch information
dviejokfs committed Feb 8, 2024
1 parent 5eeb680 commit 1a3206c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions controllers/tests/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 1a3206c

Please sign in to comment.