-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Adding a more flexible retry function to the retryService #178535
Comments
Pinging @elastic/appex-qa (Team:QA) |
I agree it is a useful improvement. I also think that having retry capabilities within single service is easy to support and re-use across different tests in the long run, opened #178660 |
@dmlemeshko Shall we close this ticket? I think you covered it in your PR, right? |
Yes, I think we can close it. |
Summary
In this PR, the security team (@jpdjere) added a retry utility that is very flexible and it accepts parameters such as:
I copied this utility to our observability API integration tests, and I did some adjustment regarding logging as we don't need to have error logs in case of a failure attempt (I prefer the logging that we have in retryService instead.)
I think it would be good to have this code shared between different tests, either in a package or maybe moving it to the
retryService
itself.The end goal is to have this functionality shared between tests and replace all the instances of
pRetry
with this utility instead: (Second item in the description of this PR)The text was updated successfully, but these errors were encountered: