-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap catalog update test with retry logic #2311
Wrap catalog update test with retry logic #2311
Conversation
test/e2e/catalog_e2e_test.go
Outdated
// Update the catalog image | ||
Eventually(func() (bool, error) { | ||
source, err = crc.OperatorsV1alpha1().CatalogSources(source.GetNamespace()).Update(context.TODO(), source, metav1.UpdateOptions{}) | ||
if err == nil { | ||
return true, nil | ||
} | ||
return false, nil | ||
}).Should(BeTrue()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Update the catalog image | |
Eventually(func() (bool, error) { | |
source, err = crc.OperatorsV1alpha1().CatalogSources(source.GetNamespace()).Update(context.TODO(), source, metav1.UpdateOptions{}) | |
if err == nil { | |
return true, nil | |
} | |
return false, nil | |
}).Should(BeTrue()) | |
// Update the catalog image | |
Eventually(func() (error) { | |
source, err = crc.OperatorsV1alpha1().CatalogSources(source.GetNamespace()).Update(context.TODO(), source, metav1.UpdateOptions{}) | |
return err | |
}).Should(Succeed()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep :P
4f39dfe
to
5a5f413
Compare
5a5f413
to
71e28c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ecordell, kevinrizza The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Fix CI inconsistency by adding retries during catalog e2e test
adding catalog template adjusts image used
. This test inconsistently fails due to apiserver cache invalidation responses