1
0
mirror of https://github.com/golang/go synced 2024-10-02 20:31:21 -06:00

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
This commit is contained in:
Brad Fitzpatrick 2011-07-14 17:00:14 -07:00
parent 48f598a393
commit fc7b42325a

View File

@ -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++
}