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

Use subtests for middleware tests #478

Merged
merged 2 commits into from
Jun 29, 2019
Merged

Conversation

fharding1
Copy link
Contributor

@fharding1 fharding1 commented May 27, 2019

Part of #409, awaiting feedback on whether I should update old_test.go before tagging that this completely closes that issue.

Uses Go subtests for all the middleware tests. I don't love the solution for CORSMethodMiddleware, because those tests don't really make sense, because that middleware doesn't really make sense (my bad, see #476). The new tests I wrote in #477 use subtests and completely replace the current tests for that, though.

Copy link
Contributor

@elithrar elithrar left a comment

Choose a reason for hiding this comment

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

LGTM bar the one comment.

middleware_test.go Outdated Show resolved Hide resolved
@elithrar
Copy link
Contributor

elithrar commented Jun 28, 2019

PS: can you rebase this against master so CI will fire?

Else I’ll push a rebased branch over the top of this later today!

@fharding1
Copy link
Contributor Author

@elithrar rebased 👌

@elithrar
Copy link
Contributor

One more time please @fharding1? 🥀 I think I was missing a checkbox on the @circleci side for triggering builds from forks (which wasn't on by default).

@fharding1 fharding1 force-pushed the subtests branch 2 times, most recently from 3f30a7f to 6d83780 Compare June 29, 2019 07:27
@fharding1
Copy link
Contributor Author

Rebased ✔️

@elithrar elithrar merged commit 48f941f into gorilla:master Jun 29, 2019
@elithrar
Copy link
Contributor

Thanks again, @fharding1!

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

Successfully merging this pull request may close these issues.

None yet

2 participants