]> Cypherpunks repositories - gostls13.git/commit
net/http: convert TestSetsRemoteAddr to use clientServerTest
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 4 Dec 2015 01:43:10 +0000 (17:43 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 4 Dec 2015 19:16:57 +0000 (19:16 +0000)
commit1ea31c7baf070adf1f2b8e970c011256890b4b9f
tree3adb62f85120b1d1a0df8040592e1018d3d9d731
parent30b87bb9aa0c6658830f3d111920e2f366476644
net/http: convert TestSetsRemoteAddr to use clientServerTest

This is an example of converting an old HTTP/1-only test to test
against both HTTP/1 and HTTP/2.

Please send more of these!

Also, for comparing the http.Transport's responses between HTTP/1 and
HTTP/2, see clientserver_test.go's h12Compare type and tests using
h12Compare. Sometimes that's the more appropriate option.

Change-Id: Iea24d844481efd5849173b60e15dcc561a32b88f
Reviewed-on: https://go-review.googlesource.com/17409
Reviewed-by: Burcu Dogan <jbd@google.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/serve_test.go