From fc7b42325ac25240918d9572b69e4223199eec4a Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 14 Jul 2011 17:00:14 -0700 Subject: [PATCH] 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 --- src/pkg/http/cgi/host_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ } -- 2.50.0