Commit fc7b4232 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

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
parent 48f598a3
...@@ -364,7 +364,7 @@ func TestCopyError(t *testing.T) { ...@@ -364,7 +364,7 @@ func TestCopyError(t *testing.T) {
conn.Close() conn.Close()
if tries := 0; childRunning() { if tries := 0; childRunning() {
for tries < 5 && childRunning() { for tries < 15 && childRunning() {
time.Sleep(50e6 * int64(tries)) time.Sleep(50e6 * int64(tries))
tries++ tries++
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment