Skip to content

Conversation

porridge
Copy link
Contributor

Fixes: #479
Signed-off-by: Marcin Owsiany marcin@owsiany.pl

cc @krasi-georgiev

Fixes: prometheus#479.
Signed-off-by: Marcin Owsiany <marcin@owsiany.pl>
Signed-off-by: Marcin Owsiany <marcin@owsiany.pl>
@porridge
Copy link
Contributor Author

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 <marcin@owsiany.pl>
Copy link
Contributor

@krasi-georgiev krasi-georgiev left a 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 <marcin@owsiany.pl>
@porridge
Copy link
Contributor Author

All done and pushed, PTAL.

@krasi-georgiev krasi-georgiev merged commit f30f428 into prometheus:master Oct 25, 2018
@krasi-georgiev
Copy link
Contributor

Thanks!
Here is the issue if someone wants to try and simplify these tests to make easier to follow. #479

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants