]> Cypherpunks repositories - gostls13.git/commit
net/http: deflake TestServerTimeouts maybe
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 15 Dec 2016 16:18:45 +0000 (16:18 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 15 Dec 2016 23:32:24 +0000 (23:32 +0000)
commitc1d449c42c6ea3c61f4636d1e9412b660be6f6bd
tree08985c4dd495c99f166cfd506223c45728b1483b
parent0cd2bf4f988e115d9b93a75e6472663d88a85a4c
net/http: deflake TestServerTimeouts maybe

I haven't been able to reproduce this one, but change a few suspect
things in this test. Notably, using the global "Get" function and thus
using the DefaultTransport was buggy in a parallel test. Then add some error
checks and close a TCP connection.

Hopefully the failure wasn't timing-related.

Fixes #18036 (I hope)

Change-Id: I4904e42e40b26d488cf82111424a1d4d46f42dae
Reviewed-on: https://go-review.googlesource.com/34490
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/http/serve_test.go