summaryrefslogtreecommitdiff
path: root/src/pkg/net
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2012-10-09 08:57:29 +1100
committerDavid Symonds <dsymonds@golang.org>2012-10-09 08:57:29 +1100
commit45a0e08cf03484fbb68e977b0e86e9a731ab28c6 (patch)
tree901faddfb457d49b4219c300a1a5240dd9c6a892 /src/pkg/net
parent191d793e148721ad3d5f0d980b602ed056a5ab3a (diff)
downloadgo-45a0e08cf03484fbb68e977b0e86e9a731ab28c6.tar.gz
testing: change -test.benchtime to a flag.Duration.
Fixes issue 3902. R=golang-dev, minux.ma, rsc, r CC=golang-dev http://codereview.appspot.com/6611059
Diffstat (limited to 'src/pkg/net')
-rw-r--r--src/pkg/net/http/serve_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/http/serve_test.go b/src/pkg/net/http/serve_test.go
index c5cf6ae71..71b7b3fb6 100644
--- a/src/pkg/net/http/serve_test.go
+++ b/src/pkg/net/http/serve_test.go
@@ -1378,7 +1378,7 @@ func benchmarkClientServerParallel(b *testing.B, conc int) {
//
// For use like:
// $ go test -c
-// $ ./http.test -test.run=XX -test.bench=BenchmarkServer -test.benchtime=15 -test.cpuprofile=http.prof
+// $ ./http.test -test.run=XX -test.bench=BenchmarkServer -test.benchtime=15s -test.cpuprofile=http.prof
// $ go tool pprof http.test http.prof
// (pprof) web
func BenchmarkServer(b *testing.B) {