]> Cypherpunks repositories - gostls13.git/commit
net/http: Fix test that occasionally fails
authorTodd Neal <todd@tneal.org>
Wed, 17 Jun 2015 14:31:08 +0000 (09:31 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 26 Jun 2015 17:22:53 +0000 (17:22 +0000)
commit37469a7bcbd833317175d6f6e82051812b7ac892
treee57c1185d77ad2c40aacd35a73f2475c185c82b0
parent61cd48b1ce95d518dc80d6344c1d84bbb55af5c3
net/http: Fix test that occasionally fails

The consecutive calls to Head would sometimes get different
connections depending on if the readLoop had finished executing
and placed its connection on the idle list or not.  This change
ensures that readLoop completes before we make our second connection.

Fixes #11250

Change-Id: Ibdbc4d3d0aba0162452f6dec5928355a37dda70a
Reviewed-on: https://go-review.googlesource.com/11170
Reviewed-by: Russ Cox <rsc@golang.org>
src/net/http/transport_test.go