Skip to content
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

[fix] simplifies test assertions #195

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

bartoszmajsak
Copy link
Contributor

@bartoszmajsak bartoszmajsak commented Aug 15, 2024

This change reworks functions called by Gomega's Eventually polling wrapper to return actual errors instead of return boolean expressions.

With this approach, error messages are more explicit, pointing to the exact error that unexpectedly occurred.

Note

I also removed dead func

This change reworks functions called by Gomega's `Eventually` polling
wrapper to return actual errors instead of return boolean expressions.

With this approach, error messages are more explicit, pointing to
the exact error that unexpectedly occurred.

Signed-off-by: bartoszmajsak <[email protected]>
Copy link
Collaborator

@guicassolato guicassolato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @bartoszmajsak!

@guicassolato guicassolato merged commit e56f2b9 into Kuadrant:main Aug 15, 2024
7 of 9 checks passed
@bartoszmajsak bartoszmajsak deleted the gomega-assertios branch August 15, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants