77 "reflect"
88 "time"
99
10- . "github.com/onsi/gomega"
10+ "github.com/onsi/gomega"
1111 "k8s.io/apimachinery/pkg/runtime"
1212 clientgoscheme "k8s.io/client-go/kubernetes/scheme"
1313 ctrl "sigs.k8s.io/controller-runtime"
@@ -61,7 +61,7 @@ func (e *ComplexEnvironment) ShouldReconcile(reconciler string, req reconcile.Re
6161
6262func (e * ComplexEnvironment ) shouldReconcile (reconciler string , req reconcile.Request , optionalDescription ... interface {}) reconcile.Result {
6363 res , err := e .Reconcilers [reconciler ].Reconcile (e .Ctx , req )
64- ExpectWithOffset (2 , err ).ToNot (HaveOccurred (), optionalDescription ... )
64+ gomega . ExpectWithOffset (2 , err ).ToNot (gomega . HaveOccurred (), optionalDescription ... )
6565 return res
6666}
6767
@@ -73,10 +73,10 @@ func (e *ComplexEnvironment) ShouldEventuallyReconcile(reconciler string, req re
7373func (e * ComplexEnvironment ) shouldEventuallyReconcile (reconciler string , req reconcile.Request , timeout , poll time.Duration , optionalDescription ... interface {}) reconcile.Result {
7474 var err error
7575 var res reconcile.Result
76- EventuallyWithOffset (1 , func () error {
76+ gomega . EventuallyWithOffset (1 , func () error {
7777 res , err = e .Reconcilers [reconciler ].Reconcile (e .Ctx , req )
7878 return err
79- }, timeout , poll ).Should (Succeed (), optionalDescription ... )
79+ }, timeout , poll ).Should (gomega . Succeed (), optionalDescription ... )
8080 return res
8181}
8282
@@ -87,7 +87,7 @@ func (e *ComplexEnvironment) ShouldNotReconcile(reconciler string, req reconcile
8787
8888func (e * ComplexEnvironment ) shouldNotReconcile (reconciler string , req reconcile.Request , optionalDescription ... interface {}) reconcile.Result {
8989 res , err := e .Reconcilers [reconciler ].Reconcile (e .Ctx , req )
90- ExpectWithOffset (2 , err ).To (HaveOccurred (), optionalDescription ... )
90+ gomega . ExpectWithOffset (2 , err ).To (gomega . HaveOccurred (), optionalDescription ... )
9191 return res
9292}
9393
@@ -99,10 +99,10 @@ func (e *ComplexEnvironment) ShouldEventuallyNotReconcile(reconciler string, req
9999func (e * ComplexEnvironment ) shouldEventuallyNotReconcile (reconciler string , req reconcile.Request , timeout , poll time.Duration , optionalDescription ... interface {}) reconcile.Result {
100100 var err error
101101 var res reconcile.Result
102- EventuallyWithOffset (1 , func () error {
102+ gomega . EventuallyWithOffset (1 , func () error {
103103 res , err = e .Reconcilers [reconciler ].Reconcile (e .Ctx , req )
104104 return err
105- }, timeout , poll ).ShouldNot (Succeed (), optionalDescription ... )
105+ }, timeout , poll ).ShouldNot (gomega . Succeed (), optionalDescription ... )
106106 return res
107107}
108108
0 commit comments