]> Cypherpunks repositories - gostls13.git/commit
http: improve a test
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 May 2011 18:25:35 +0000 (11:25 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 May 2011 18:25:35 +0000 (11:25 -0700)
commit4b30d7cead579335c486573f154567f813279b5e
tree83bc797530fa1d1653e17a8488eb7aaaf32dbf49
parent54422c7750ae4623a45b95b9668992cdafcfa0c8
http: improve a test

Should prevent failures on slow machines, such as:
http://godashboard.appspot.com/log/47b5cae591b7ad8908704e327f3b9b41945d7d5fecfc0c8c945d5545ece1a813

Verified the change (on a fast machine) by removing the
existing sleep, in which case the race happens ~50% of the
time with GOMAXPROCS > 1, but recovers gracefully with
retries.

R=rsc
CC=golang-dev
https://golang.org/cl/4441089
src/pkg/http/transport_test.go