]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: split Trailers tests into two halves
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 16 Dec 2015 19:47:42 +0000 (19:47 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 16 Dec 2015 20:25:46 +0000 (20:25 +0000)
commit654daac3bce1314d5568b46bfa48ec4c546d7395
treedc63ac2c7a4650c59871e580e3a0bc4466a06983
parent6bcec09ceba8698deb51ed10d13b66f3c12754c3
net/http: split Trailers tests into two halves

The old test was in client_test.go but was a mix of four things:

- clients writing trailers
- servers reading trailers
- servers writing trailers
- clients reading trailers

It definitely wasn't just about clients.

This moves it into clientserver_test.go and separates it into two
halves:

- servers writing trailers + clients reading trailers
- clients writing trailers + servers reading trailers

Which still isn't ideal, but is much better, and easier to read.

Updates #13557

Change-Id: I8c3e58a1f974c1b10bb11ef9b588cfa0f73ff5d9
Reviewed-on: https://go-review.googlesource.com/17895
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Blake Mizerany <blake.mizerany@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/client_test.go
src/net/http/clientserver_test.go
src/net/http/transfer.go