From: Brad Fitzpatrick Date: Fri, 15 Jul 2011 00:00:14 +0000 (-0700) Subject: cgi: make test less flaky X-Git-Tag: weekly.2011-07-19~55 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fc7b42325ac25240918d9572b69e4223199eec4a;p=gostls13.git cgi: make test less flaky Previously, during the anti-zombie test, a CGI process had to finish within ~625ms. Now it gets ~5.6 seconds. R=golang-dev, r CC=golang-dev https://golang.org/cl/4741041 --- diff --git a/src/pkg/http/cgi/host_test.go b/src/pkg/http/cgi/host_test.go index 98a7ce5f26..1dc3abdbb3 100644 --- a/src/pkg/http/cgi/host_test.go +++ b/src/pkg/http/cgi/host_test.go @@ -364,7 +364,7 @@ func TestCopyError(t *testing.T) { conn.Close() if tries := 0; childRunning() { - for tries < 5 && childRunning() { + for tries < 15 && childRunning() { time.Sleep(50e6 * int64(tries)) tries++ }