]> Cypherpunks repositories - gostls13.git/commit
net/http: deflake BenchmarkClient and its use of a fixed port for testing
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 15 Aug 2016 17:20:21 +0000 (17:20 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 16 Aug 2016 01:46:41 +0000 (01:46 +0000)
commit5a59516dd75e32cfa22441ffe313103ff72fe796
treefe752406da4e93f5df891fcb46b975e7fed4c651
parent52fcff3ec147ea8ae48c023f3d5000a8bf42fe8c
net/http: deflake BenchmarkClient and its use of a fixed port for testing

Let the kernel pick a port for testing, and have the server in the
child process tell the parent (benchmarking) process the port that
was selected.

Fixes flakes like seen in https://golang.org/cl/27050 (and previously)

Change-Id: Ia2b705dc4152f70e0a5725015bdae09984d09d53
Reviewed-on: https://go-review.googlesource.com/27051
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