Skip to content

Commit d555939

Browse files
authored
Wrap catalog update test with retry logic (#2311)
1 parent 44fc44d commit d555939

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/e2e/catalog_e2e_test.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,11 @@ var _ = Describe("Catalog represents a store of bundles which OLM can use to ins
10681068

10691069
source.SetAnnotations(map[string]string{catalogsource.CatalogImageTemplateAnnotation: fmt.Sprintf("quay.io/olmtest/catsrc-update-test:%s.%s.%s", catalogsource.TemplKubeMajorV, catalogsource.TemplKubeMinorV, catalogsource.TemplKubePatchV)})
10701070

1071-
source, err = crc.OperatorsV1alpha1().CatalogSources(source.GetNamespace()).Update(context.TODO(), source, metav1.UpdateOptions{})
1072-
Expect(err).ShouldNot(HaveOccurred(), "error updating catalog source with template annotation")
1071+
// Update the catalog image
1072+
Eventually(func() error {
1073+
source, err = crc.OperatorsV1alpha1().CatalogSources(source.GetNamespace()).Update(context.TODO(), source, metav1.UpdateOptions{})
1074+
return err
1075+
}).Should(Succeed())
10731076

10741077
// wait for status condition to show up
10751078
Eventually(func() (bool, error) {

0 commit comments

Comments
 (0)