@@ -295,8 +295,8 @@ var _ = ginkgo.Describe("ManageJobsWithoutQueueName", ginkgo.Ordered, func() {
295
295
296
296
ginkgo .By ("Checking that the AppWrapper is unsuspended" , func () {
297
297
gomega .Eventually (func (g gomega.Gomega ) {
298
- g .Expect (k8sClient .Get (ctx , client .ObjectKeyFromObject (aw ), aw )).To (gomega .Succeed ())
299
- g .Expect (aw .Spec .Suspend ).Should (gomega .BeFalse ())
298
+ g .Expect (k8sClient .Get (ctx , client .ObjectKeyFromObject (aw ), createdAppWrapper )).To (gomega .Succeed ())
299
+ g .Expect (createdAppWrapper .Spec .Suspend ).Should (gomega .BeFalse ())
300
300
}, util .LongTimeout , util .Interval ).Should (gomega .Succeed ())
301
301
})
302
302
@@ -701,9 +701,10 @@ var _ = ginkgo.Describe("ManageJobsWithoutQueueName without JobSet integration",
701
701
})
702
702
703
703
ginkgo .By ("Checking that the AppWrapper is unsuspended" , func () {
704
+ createdAppWrapper := & awv1beta2.AppWrapper {}
704
705
gomega .Eventually (func (g gomega.Gomega ) {
705
- g .Expect (k8sClient .Get (ctx , client .ObjectKeyFromObject (aw ), aw )).To (gomega .Succeed ())
706
- g .Expect (aw .Spec .Suspend ).Should (gomega .BeFalse ())
706
+ g .Expect (k8sClient .Get (ctx , client .ObjectKeyFromObject (aw ), createdAppWrapper )).To (gomega .Succeed ())
707
+ g .Expect (createdAppWrapper .Spec .Suspend ).Should (gomega .BeFalse ())
707
708
}, util .LongTimeout , util .Interval ).Should (gomega .Succeed ())
708
709
})
709
710
0 commit comments