Skip to content

Commit 5d0a2c2

Browse files
test/e2e: retry a mutating call
Signed-off-by: Steve Kuznetsov <[email protected]>
1 parent 51f59f6 commit 5d0a2c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/e2e/subscription_e2e_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,10 @@ var _ = Describe("Subscription", func() {
761761

762762
// Update sub to target an existing CatalogSource
763763
sub.Spec.CatalogSource = catalogSourceName
764-
_, err = crc.OperatorsV1alpha1().Subscriptions(generatedNamespace.GetName()).Update(context.Background(), sub, metav1.UpdateOptions{})
765-
Expect(err).NotTo(HaveOccurred())
764+
Eventually(func() error {
765+
_, err := crc.OperatorsV1alpha1().Subscriptions(generatedNamespace.GetName()).Update(context.Background(), sub, metav1.UpdateOptions{})
766+
return err
767+
}).Should(Succeed())
766768

767769
// Wait for SubscriptionCatalogSourcesUnhealthy to be false
768770
By("detecting a new existing target")

0 commit comments

Comments
 (0)