@@ -56,7 +56,7 @@ var _ = Describe("exchange-controller", func() {
5656 )
5757
5858 return exchange .Status .Conditions
59- }, 10 * time . Second , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
59+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
6060 "Type" : Equal (topology .ConditionType ("Ready" )),
6161 "Reason" : Equal ("FailedCreateOrUpdate" ),
6262 "Status" : Equal (corev1 .ConditionFalse ),
@@ -81,7 +81,7 @@ var _ = Describe("exchange-controller", func() {
8181 )
8282
8383 return exchange .Status .Conditions
84- }, 10 * time . Second , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
84+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
8585 "Type" : Equal (topology .ConditionType ("Ready" )),
8686 "Reason" : Equal ("FailedCreateOrUpdate" ),
8787 "Status" : Equal (corev1 .ConditionFalse ),
@@ -113,7 +113,7 @@ var _ = Describe("exchange-controller", func() {
113113 )
114114
115115 return exchange .Status .Conditions
116- }, 10 * time . Second , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
116+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
117117 "Type" : Equal (topology .ConditionType ("Ready" )),
118118 "Reason" : Equal ("SuccessfulCreateOrUpdate" ),
119119 "Status" : Equal (corev1 .ConditionTrue ),
@@ -139,7 +139,7 @@ var _ = Describe("exchange-controller", func() {
139139 & exchange ,
140140 )
141141 return exchange .Status .Conditions
142- }, 10 * time . Second , 1 * time .Second ).Should (ConsistOf (MatchFields (IgnoreExtras , Fields {
142+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ConsistOf (MatchFields (IgnoreExtras , Fields {
143143 "Type" : Equal (topology .ConditionType ("Ready" )),
144144 "Status" : Equal (corev1 .ConditionTrue ),
145145 })))
@@ -180,7 +180,7 @@ var _ = Describe("exchange-controller", func() {
180180 & exchange ,
181181 )
182182 return exchange .Status .Conditions
183- }, 10 * time . Second , 1 * time .Second ).Should (ConsistOf (MatchFields (IgnoreExtras , Fields {
183+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ConsistOf (MatchFields (IgnoreExtras , Fields {
184184 "Type" : Equal (topology .ConditionType ("Ready" )),
185185 "Status" : Equal (corev1 .ConditionFalse ),
186186 "Reason" : Equal ("FailedCreateOrUpdate" ),
@@ -205,7 +205,7 @@ var _ = Describe("exchange-controller", func() {
205205 )
206206
207207 return exchange .Status .Conditions
208- }, 10 * time . Second , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
208+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
209209 "Type" : Equal (topology .ConditionType ("Ready" )),
210210 "Reason" : Equal ("SuccessfulCreateOrUpdate" ),
211211 "Status" : Equal (corev1 .ConditionTrue ),
@@ -227,7 +227,7 @@ var _ = Describe("exchange-controller", func() {
227227 Consistently (func () bool {
228228 err := client .Get (ctx , types.NamespacedName {Name : exchange .Name , Namespace : exchange .Namespace }, & topology.Exchange {})
229229 return apierrors .IsNotFound (err )
230- }, 5 ).Should (BeFalse ())
230+ }, statusEventsUpdateTimeout ).Should (BeFalse ())
231231 Expect (observedEvents ()).To (ContainElement ("Warning FailedDelete failed to delete exchange" ))
232232 })
233233 })
@@ -243,7 +243,7 @@ var _ = Describe("exchange-controller", func() {
243243 Consistently (func () bool {
244244 err := client .Get (ctx , types.NamespacedName {Name : exchange .Name , Namespace : exchange .Namespace }, & topology.Exchange {})
245245 return apierrors .IsNotFound (err )
246- }, 5 ).Should (BeFalse ())
246+ }, statusEventsUpdateTimeout ).Should (BeFalse ())
247247 Expect (observedEvents ()).To (ContainElement ("Warning FailedDelete failed to delete exchange" ))
248248 })
249249 })
@@ -262,7 +262,7 @@ var _ = Describe("exchange-controller", func() {
262262 Eventually (func () bool {
263263 err := client .Get (ctx , types.NamespacedName {Name : exchange .Name , Namespace : exchange .Namespace }, & topology.Exchange {})
264264 return apierrors .IsNotFound (err )
265- }, 5 ).Should (BeTrue ())
265+ }, statusEventsUpdateTimeout ).Should (BeTrue ())
266266 Expect (observedEvents ()).To (SatisfyAll (
267267 Not (ContainElement ("Warning FailedDelete failed to delete exchange" )),
268268 ContainElement ("Normal SuccessfulDelete successfully deleted exchange" ),
@@ -297,7 +297,7 @@ var _ = Describe("exchange-controller", func() {
297297 )
298298
299299 return exchange .Status .Conditions
300- }, 10 * time . Second , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
300+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
301301 "Type" : Equal (topology .ConditionType ("Ready" )),
302302 "Reason" : Equal ("FailedCreateOrUpdate" ),
303303 "Status" : Equal (corev1 .ConditionFalse ),
@@ -336,7 +336,7 @@ var _ = Describe("exchange-controller", func() {
336336 )
337337
338338 return exchange .Status .Conditions
339- }, 10 * time . Second , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
339+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
340340 "Type" : Equal (topology .ConditionType ("Ready" )),
341341 "Reason" : Equal ("SuccessfulCreateOrUpdate" ),
342342 "Status" : Equal (corev1 .ConditionTrue ),
@@ -374,7 +374,7 @@ var _ = Describe("exchange-controller", func() {
374374 )
375375
376376 return exchange .Status .Conditions
377- }, 10 * time . Second , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
377+ }, statusEventsUpdateTimeout , 1 * time .Second ).Should (ContainElement (MatchFields (IgnoreExtras , Fields {
378378 "Type" : Equal (topology .ConditionType ("Ready" )),
379379 "Reason" : Equal ("SuccessfulCreateOrUpdate" ),
380380 "Status" : Equal (corev1 .ConditionTrue ),
0 commit comments