-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
There was a problem hiding this 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.
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! |
@elithrar rebased 👌 |
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). |
3f30a7f
to
6d83780
Compare
Rebased ✔️ |
Thanks again, @fharding1! |
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.