Skip to content

Commit e5fe8b6

Browse files
author
Joshua Reed
committed
Controllers test suite cleanup.
1 parent 319b905 commit e5fe8b6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

controllers/controllers_suite_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535
"github.com/golang/mock/gomock"
3636
. "github.com/onsi/ginkgo/v2"
3737
. "github.com/onsi/gomega"
38+
"github.com/pkg/errors"
3839
"k8s.io/client-go/kubernetes/scheme"
3940
ctrl "sigs.k8s.io/controller-runtime"
4041
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -111,7 +112,7 @@ var _ = BeforeSuite(func() {
111112
cmd := exec.Command(projectDir+"/hack/testing_ginkgo_recover_statements.sh", "--add")
112113
cmd.Stdout = os.Stdout
113114
if err := cmd.Run(); err != nil {
114-
fmt.Println("Refusing to run tests without ginkgo recover set.")
115+
fmt.Println(errors.Wrapf(err, "cleaning up gingko statements:"))
115116
os.Exit(1)
116117
}
117118

controllers/mocks/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)