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

chore: do not store context in struct for e2e tests #4731

Merged

Conversation

lukemassa
Copy link
Contributor

what

Remove context.Context from struct in GithubClient in e2e tests.

why

Storing context in a struct is explicitly discouraged: https://go.dev/blog/context-and-structs

The reason I'm doing this now is because I am starting to work on #4582, so simplifying the code here first will make this easier.

tests

I ran ./scripts/e2e.sh manually and it passed.

references

https://go.dev/blog/context-and-structs

@lukemassa lukemassa requested review from a team as code owners July 7, 2024 16:36
@lukemassa lukemassa requested review from jamengual, nitrocode and X-Guardian and removed request for a team July 7, 2024 16:36
@github-actions github-actions bot added the go Pull requests that update Go code label Jul 7, 2024
@chenrui333 chenrui333 added the e2e label Jul 7, 2024
@lukemassa lukemassa merged commit 2341891 into runatlantis:main Jul 7, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants