e2e: tolerate transient errors in Eventually#3907
e2e: tolerate transient errors in Eventually#3907gman0 wants to merge 2 commits intokcp-dev:mainfrom
Conversation
On-behalf-of: @SAP robert.vasek@sap.com Signed-off-by: Robert Vasek <robert.vasek@clyso.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Also, I think our error handling in tests could use some work. E.g. it seems, as time went on, the different I'd be really happy if someone more knowledgeable around testing frameworks could give their few cents and say if there are any ideas worth borrowing. |
Summary
There are a few e2e tests that fail on errors that may be only transient. This PR adds a helper function
TolerateOrFaildepending on the supplied predicates and tolerates/fails accordingly. It's being called where appropriate: as far as I could tell, these are the last places that were left after the otherEventually()VSrequire.*cleanups we had.What Type of PR Is This?
/kind cleanup
Related Issue(s)
Fixes #3905
Release Notes