@@ -209,10 +209,10 @@ var _ = Describe("Provider Namespace", Ordered, func() {
209209 })
210210
211211 It ("runs the reconciler for existing objects" , func (ctx context.Context ) {
212- Eventually (func () string {
212+ Eventually (func (g Gomega ) string {
213213 lion := & corev1.ConfigMap {}
214214 err := zooCli .Get (ctx , client.ObjectKey {Namespace : "zoo" , Name : "lion" }, lion )
215- Expect (err ).NotTo (HaveOccurred ())
215+ g . Expect (err ).NotTo (HaveOccurred ())
216216 return lion .Data ["stomach" ]
217217 }, "10s" ).Should (Equal ("food" ))
218218 })
@@ -223,10 +223,10 @@ var _ = Describe("Provider Namespace", Ordered, func() {
223223 Expect (err ).NotTo (HaveOccurred ())
224224 })
225225
226- Eventually (func () string {
226+ Eventually (func (g Gomega ) string {
227227 tiger := & corev1.ConfigMap {}
228228 err := zooCli .Get (ctx , client.ObjectKey {Namespace : "zoo" , Name : "tiger" }, tiger )
229- Expect (err ).NotTo (HaveOccurred ())
229+ g . Expect (err ).NotTo (HaveOccurred ())
230230 return tiger .Data ["stomach" ]
231231 }, "10s" ).Should (Equal ("food" ))
232232 })
@@ -246,19 +246,19 @@ var _ = Describe("Provider Namespace", Ordered, func() {
246246 rv , err := strconv .ParseInt (updated .ResourceVersion , 10 , 64 )
247247 Expect (err ).NotTo (HaveOccurred ())
248248
249- Eventually (func () int64 {
249+ Eventually (func (g Gomega ) int64 {
250250 elephant := & corev1.ConfigMap {}
251251 err := zooCli .Get (ctx , client.ObjectKey {Namespace : "zoo" , Name : "elephant" }, elephant )
252- Expect (err ).NotTo (HaveOccurred ())
252+ g . Expect (err ).NotTo (HaveOccurred ())
253253 rv , err := strconv .ParseInt (elephant .ResourceVersion , 10 , 64 )
254- Expect (err ).NotTo (HaveOccurred ())
254+ g . Expect (err ).NotTo (HaveOccurred ())
255255 return rv
256256 }, "10s" ).Should (BeNumerically (">=" , rv ))
257257
258- Eventually (func () string {
258+ Eventually (func (g Gomega ) string {
259259 elephant := & corev1.ConfigMap {}
260260 err := zooCli .Get (ctx , client.ObjectKey {Namespace : "zoo" , Name : "elephant" }, elephant )
261- Expect (err ).NotTo (HaveOccurred ())
261+ g . Expect (err ).NotTo (HaveOccurred ())
262262 return elephant .Data ["stomach" ]
263263 }, "10s" ).Should (Equal ("food" ))
264264 })
@@ -292,10 +292,10 @@ var _ = Describe("Provider Namespace", Ordered, func() {
292292 err = jungleCli .Create (ctx , & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Namespace : "jungle" , Name : "dog" , Labels : map [string ]string {"type" : "animal" }}})
293293 Expect (err ).NotTo (HaveOccurred ())
294294
295- Eventually (func () string {
295+ Eventually (func (g Gomega ) string {
296296 dog := & corev1.ConfigMap {}
297297 err := jungleCli .Get (ctx , client.ObjectKey {Namespace : "jungle" , Name : "dog" }, dog )
298- Expect (err ).NotTo (HaveOccurred ())
298+ g . Expect (err ).NotTo (HaveOccurred ())
299299 return dog .Data ["stomach" ]
300300 }, "10s" ).Should (Equal ("food" ))
301301 })
@@ -314,10 +314,10 @@ var _ = Describe("Provider Namespace", Ordered, func() {
314314 err = jungleCli .Create (ctx , & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Namespace : "jungle" , Name : "leopard" , Labels : map [string ]string {"type" : "animal" }}})
315315 Expect (err ).NotTo (HaveOccurred ())
316316
317- Eventually (func () string {
317+ Eventually (func (g Gomega ) string {
318318 leopard := & corev1.ConfigMap {}
319319 err := jungleCli .Get (ctx , client.ObjectKey {Namespace : "jungle" , Name : "leopard" }, leopard )
320- Expect (err ).NotTo (HaveOccurred ())
320+ g . Expect (err ).NotTo (HaveOccurred ())
321321 return leopard .Data ["stomach" ]
322322 }, "10s" ).Should (Equal ("food" ))
323323 })
0 commit comments