mirror of
https://github.com/golang/go
synced 2024-11-19 23:44:43 -07:00
net/http: skip TestTransportClosesBodyOnError on Plan 9
LGTM=rsc R=bradfitz, rsc CC=golang-codereviews https://golang.org/cl/87800044
This commit is contained in:
parent
0a96d64c9c
commit
b9f5dce4fc
@ -2040,6 +2040,9 @@ func (f closerFunc) Close() error { return f() }
|
|||||||
|
|
||||||
// Issue 6981
|
// Issue 6981
|
||||||
func TestTransportClosesBodyOnError(t *testing.T) {
|
func TestTransportClosesBodyOnError(t *testing.T) {
|
||||||
|
if runtime.GOOS == "plan9" {
|
||||||
|
t.Skip("skipping test; see http://golang.org/issue/7782")
|
||||||
|
}
|
||||||
defer afterTest(t)
|
defer afterTest(t)
|
||||||
readBody := make(chan error, 1)
|
readBody := make(chan error, 1)
|
||||||
ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
|
ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user