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

Update agent controller tests #167

Merged

Conversation

linkas45
Copy link
Contributor

No description provided.

Comment on lines 64 to 70
tests := map[string]struct {
objectCount int
}{
"happy path": {
objectCount: 14,
},
}
Copy link

Choose a reason for hiding this comment

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

question: do we need a test case for the single test?

I assume you would need this in follow-up changes. Otherwise, this is premature optimization and it doesn't add any value. I would better if I got intent of this PR while reading it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, this is a refactor for other changes so there would be less visible changes when actual bug fix is implemented

Copy link

@aweris aweris May 31, 2024

Choose a reason for hiding this comment

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

it does not add too much value as a separate PR when I looked into #168.

there would be less visible changes when actual bug fix is implemented

agreed, can be kept as it is but still feels like not adds enough benefit to tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well if I wouldn't separate it would be more difficult to read the actual changes because there is test refactor where data is moving and additional logic to support bug fix

tests := map[string]struct {
objectCount int
}{
"happy path": {
Copy link

Choose a reason for hiding this comment

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

minor: please use more explicit names for test cases.

happy path is too vague, don't give me a hint about what is conditions and meaning of happy path

@linkas45 linkas45 merged commit addeeef into main Jun 4, 2024
2 checks passed
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