]> Cypherpunks repositories - gostls13.git/commit
net/http: fix flaky TestClientRedirect308NoLocation
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 1 Mar 2017 05:42:32 +0000 (05:42 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 1 Mar 2017 15:04:23 +0000 (15:04 +0000)
commit3123df3464ff8df1d15452b51360e1b7f05dbcd3
treed903e90e594fb4aa5aacc1f14a00f50f1a7f097c
parent6d32b1a3431dba378d22fa8b187ccfeab259cbe2
net/http: fix flaky TestClientRedirect308NoLocation

This was a t.Parallel test but it was using the global DefaultTransport
via the global Get func.

Use a private Transport that won't have its CloseIdleConnections etc
methods called by other tests.

(I hit this flake myself while testing a different change.)

Change-Id: If0665e3e8580ee198f8e5f3079bfaea55f036eca
Reviewed-on: https://go-review.googlesource.com/37624
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/net/http/client_test.go