-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add a way to return the body of a 5xx response. #484
Conversation
Fixes: prometheus#479. Signed-off-by: Marcin Owsiany <[email protected]>
Signed-off-by: Marcin Owsiany <[email protected]>
Changes pushed, PTAL @krasi-georgiev |
Without t.Run() it is very hard to figure out which test in a table has failed. Signed-off-by: Marcin Owsiany <[email protected]>
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.
yep that is more logical, thanks!
I think after few small changes it is ready.
btw I find the tests very hard to follow and I think the https://golang.org/pkg/net/http/httptest/ should help to refactor and simplify these, but is a story for another PR for #485.
Signed-off-by: Marcin Owsiany <[email protected]>
All done and pushed, PTAL. |
Thanks! |
Fixes: #479
Signed-off-by: Marcin Owsiany [email protected]
cc @krasi-georgiev