Commit 4bd15ae1 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

cgi: make test code more readable

R=rsc
CC=golang-dev
https://golang.org/cl/5375089
parent 4e65478c
......@@ -363,14 +363,13 @@ func TestCopyError(t *testing.T) {
}
conn.Close()
if tries := 0; childRunning() {
for tries < 15 && childRunning() {
time.Sleep(50e6 * int64(tries))
tries++
}
if childRunning() {
t.Fatalf("post-conn.Close, expected child to be gone")
}
tries := 0
for tries < 15 && childRunning() {
time.Sleep(50e6 * int64(tries))
tries++
}
if childRunning() {
t.Fatalf("post-conn.Close, expected child to be gone")
}
}
......
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