From b9f5dce4fc05ab89fcf695f2236dfdbef697cde2 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 16 Apr 2014 00:48:21 +0200 Subject: [PATCH] net/http: skip TestTransportClosesBodyOnError on Plan 9 LGTM=rsc R=bradfitz, rsc CC=golang-codereviews https://golang.org/cl/87800044 --- src/pkg/net/http/transport_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pkg/net/http/transport_test.go b/src/pkg/net/http/transport_test.go index 3e6235a6c2..17c9aaef1e 100644 --- a/src/pkg/net/http/transport_test.go +++ b/src/pkg/net/http/transport_test.go @@ -2040,6 +2040,9 @@ func (f closerFunc) Close() error { return f() } // Issue 6981 func TestTransportClosesBodyOnError(t *testing.T) { + if runtime.GOOS == "plan9" { + t.Skip("skipping test; see http://golang.org/issue/7782") + } defer afterTest(t) readBody := make(chan error, 1) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {