@@ -202,6 +202,7 @@ func TestConfigMapChangesWithNonMatchingSelector(t *testing.T) {
202202 if err := env .Get (ctx , client .ObjectKeyFromObject (coreProvider ), coreProvider ); err != nil {
203203 return false
204204 }
205+
205206 return conditions .IsTrue (coreProvider , operatorv1 .ProviderInstalledCondition )
206207 }, timeout ).Should (BeTrue ())
207208
@@ -286,6 +287,7 @@ func TestConfigMapChangesWithNonMatchingSelector(t *testing.T) {
286287 return false
287288 }
288289 hash := provider .GetAnnotations ()[appliedSpecHashAnnotation ]
290+
289291 return hash != ""
290292 }, timeout ).Should (BeTrue (), "Provider should have a hash annotation after reconciliation" )
291293
@@ -308,6 +310,7 @@ func TestConfigMapChangesWithNonMatchingSelector(t *testing.T) {
308310 }
309311
310312 currentHash := provider .GetAnnotations ()[appliedSpecHashAnnotation ]
313+
311314 return currentHash == initialHash
312315 }, 10 * time .Second , 2 * time .Second ).Should (BeTrue ())
313316
@@ -327,6 +330,7 @@ func TestConfigMapChangesWithNonMatchingSelector(t *testing.T) {
327330 }
328331
329332 currentHash := provider .GetAnnotations ()[appliedSpecHashAnnotation ]
333+
330334 return currentHash != "" && currentHash != initialHash
331335 }, 30 * time .Second ).Should (BeTrue ())
332336
@@ -367,6 +371,7 @@ func TestMultipleConfigMapsError(t *testing.T) {
367371 if err := env .Get (ctx , client .ObjectKeyFromObject (coreProvider ), coreProvider ); err != nil {
368372 return false
369373 }
374+
370375 return conditions .IsTrue (coreProvider , operatorv1 .ProviderInstalledCondition )
371376 }, timeout ).Should (BeTrue ())
372377
@@ -442,6 +447,7 @@ func TestMultipleConfigMapsError(t *testing.T) {
442447 if err := env .Get (ctx , client .ObjectKeyFromObject (provider ), provider ); err != nil {
443448 return false
444449 }
450+
445451 return conditions .IsFalse (provider , operatorv1 .ProviderInstalledCondition ) &&
446452 conditions .GetReason (provider , operatorv1 .ProviderInstalledCondition ) != ""
447453 }, timeout ).Should (BeTrue ())
0 commit comments