aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2015-06-26 20:51:13 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2015-06-29 05:19:36 +0000
commit1bab3a16db964e331097e314ef4c57e1ac44cc4a (patch)
tree1a9101f9c85354d998e4073adc89bed57183e4a0 /src/encoding
parent0bafe0e5b284d41052be418052f61ab03504d7f7 (diff)
downloadgo-1bab3a16db964e331097e314ef4c57e1ac44cc4a.tar.xz
net/http: fix now-flaky TransportAndServerSharedBodyRace test
TestTransportAndServerSharedBodyRace got flaky after issue #9662 was fixed by https://golang.org/cl/11412, which made servers hang up on clients when a Handler stopped reading its body early. This test was affected by a race between the the two goroutines in the test both only reading part of the request, which was an unnecessary detail for what the test was trying to test (concurrent Read/Close races on an *http.body) Also remove an unused remnant from an old test from which this one was derived. And make the test not deadlock when it fails. (which was why the test was showing up as 2m timeouts on the dashboard) Fixes #11418 Change-Id: Ic83d18aef7e09a9cd56ac15e22ebed75713026cb Reviewed-on: https://go-review.googlesource.com/11610 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions