]> Cypherpunks repositories - gostls13.git/commit
net/http: deflake tests in full mode after t.Parallel additions
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 4 Jan 2016 18:27:51 +0000 (18:27 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 4 Jan 2016 19:23:17 +0000 (19:23 +0000)
commit28b95edff2108c5e567debbf5e65db1a94c2ef39
treef73effa209fa1524f0e72dd167ff858694794c0c
parentfa8384dfb9d229269cca4e176a1870b776894552
net/http: deflake tests in full mode after t.Parallel additions

https://golang.org/cl/18087 added a bunch of t.Parallel calls, which
aren't compatible with the afterTest func. But in short mode, afterTest
is a no-op. To keep all.bash (short mode) fast, conditionally set
t.Parallel when in short mode, but keep it unset for compatibility with
afterFunc otherwise.

Fixes #13804

Change-Id: Ie841fbc2544e1ffbee43ba1afbe895774e290da0
Reviewed-on: https://go-review.googlesource.com/18143
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/main_test.go
src/net/http/serve_test.go
src/net/http/transport_test.go