Skip to content

🌱 test: use ConditionFalseWithReasonAtKey in controllers#1962

Open
guettli wants to merge 5 commits intov1.1.xfrom
tg/ConditionFalseWithReasonAtKey
Open

🌱 test: use ConditionFalseWithReasonAtKey in controllers#1962
guettli wants to merge 5 commits intov1.1.xfrom
tg/ConditionFalseWithReasonAtKey

Conversation

@guettli
Copy link
Copy Markdown
Collaborator

@guettli guettli commented Apr 14, 2026

use ConditionFalseWithReasonAtKey in controllers

In tests, the failure message of an Eventually() is usualy not easy to understand, when the function returns bool. It is easier to understand, when the Eventually checks for the absencse of an error.

@github-actions github-actions Bot added size/L Denotes a PR that changes 200-800 lines, ignoring generated files. area/test Changes made in the test directory area/code Changes made in the code directory labels Apr 14, 2026
@guettli guettli marked this pull request as ready for review April 18, 2026 08:32
@guettli guettli requested a review from janiskemper April 18, 2026 08:32
Copy link
Copy Markdown
Contributor

@Dhairya-Arora01 Dhairya-Arora01 left a comment

Choose a reason for hiding this comment

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

We should use ConditionFalseWithReasonAtKey func at other places like server_test.go as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/code Changes made in the code directory area/test Changes made in the test directory size/L Denotes a PR that changes 200-800 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants