]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: enable TestRequestDoesntBodyCloseDoesntBlock
authorEmmanuel Odeke <emm.odeke@gmail.com>
Sat, 29 Apr 2017 07:42:19 +0000 (01:42 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 29 Apr 2017 15:56:48 +0000 (15:56 +0000)
Fixes #7121.

CL 31173 inadvertently fixed this issue in the Go1.8 cycle.
This CL enables the test for that issue.

Change-Id: I8e73b41f646fa89c75bff833c1b07e1cdb2b1e62
Reviewed-on: https://go-review.googlesource.com/42149
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/net/http/serve_test.go

index 0a7459a0dcd9aa7edc22ab7e4a9d776ce788ad8f..5b384190b2ce69913c56cd838d090a0cf1a8a01a 100644 (file)
@@ -3702,8 +3702,8 @@ func testTransportAndServerSharedBodyRace(t *testing.T, h2 bool) {
 
 // Test that a hanging Request.Body.Read from another goroutine can't
 // cause the Handler goroutine's Request.Body.Close to block.
+// See issue 7121.
 func TestRequestBodyCloseDoesntBlock(t *testing.T) {
-       t.Skipf("Skipping known issue; see golang.org/issue/7121")
        if testing.Short() {
                t.Skip("skipping in -short mode")
        }