Skip to content

fix(coderd): improve use case handling in notifier for appearance fetchers #15242

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

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

defelmnq
Copy link
Contributor

Fixing #15241 & add tests.

@defelmnq defelmnq self-assigned this Oct 28, 2024
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

👍 I think this is a nice application of mocks.


ctx := context.Background()
_, err := n.fetchHelpers(ctx)
require.Error(t, err)
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think you should be able to drop require.Error if you're checking require.ErrorContains:

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the bug report & comprehensive fix

@defelmnq defelmnq merged commit 95a348e into main Oct 28, 2024
26 checks passed
@defelmnq defelmnq deleted the fix-notifiers-appearance branch October 28, 2024 15:53
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants