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

httptesting: fix for Go 1.6 #93

Merged
merged 1 commit into from
Mar 23, 2016

Conversation

rogpeppe
Copy link
Contributor

The httptest.ResponseRecorder type has become more
sophisticated, and our code was being a bit devious
by constructing one without using the expected methods.

Fix by using the expected methods to make the ResponseRecorder.

We should eventually remove our use of ResponseRecorder entirely
and fix all the code that uses httptesting, but we don't
need to bite that bullet quite yet.

(Review request: http://reviews.vapour.ws/r/4317/)

The httptest.ResponseRecorder type has become more
sophisticated, and our code was being a bit devious
by constructing one without using the expected methods.

Fix by using the expected methods to make the ResponseRecorder.

We should eventually remove our use of ResponseRecorder entirely
and fix all the code that uses httptesting, but we don't
need to bite that bullet quite yet.
@rogpeppe rogpeppe force-pushed the 010-fix-do-request-go1.6 branch from 3d4ea00 to eac86a6 Compare March 23, 2016 11:02
@frankban
Copy link
Member

👍

1 similar comment
@mattyw
Copy link

mattyw commented Mar 23, 2016

👍

@rogpeppe rogpeppe merged commit f60b135 into juju:master Mar 23, 2016
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.

3 participants