From: Brad Fitzpatrick Date: Mon, 14 Nov 2011 21:12:08 +0000 (-0800) Subject: cgi: make test code more readable X-Git-Tag: weekly.2011-11-18~61 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4bd15ae1b72c5488a06ea1365d0090d76699770c;p=gostls13.git cgi: make test code more readable R=rsc CC=golang-dev https://golang.org/cl/5375089 --- diff --git a/src/pkg/net/http/cgi/host_test.go b/src/pkg/net/http/cgi/host_test.go index 635a85521e..4e977040c0 100644 --- a/src/pkg/net/http/cgi/host_test.go +++ b/src/pkg/net/http/cgi/host_test.go @@ -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") } }