]> Cypherpunks repositories - gostls13.git/commit
net/http: fix racy test
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 15 Jan 2013 17:13:05 +0000 (09:13 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 15 Jan 2013 17:13:05 +0000 (09:13 -0800)
commit3b73aaafdcd35ad20329730f5193859f491e59f4
treec4c2ee7acce15b85105159ff4a13336e59f7d199
parent399a36a634d58f14f1945b83a84b884c9dfb72da
net/http: fix racy test

We need to wait for the handler to actually finish running,
not almost be done running.

This was always a bug, but now that handler output is buffered
it shows up easily on GOMAXPROCS >1 systems.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7109043
src/pkg/net/http/serve_test.go