1
0
mirror of https://github.com/golang/go synced 2024-11-20 03:34:40 -07:00

cgi: make test code more readable

R=rsc
CC=golang-dev
https://golang.org/cl/5375089
This commit is contained in:
Brad Fitzpatrick 2011-11-14 13:12:08 -08:00
parent 4e65478cbd
commit 4bd15ae1b7

View File

@ -363,7 +363,7 @@ func TestCopyError(t *testing.T) {
} }
conn.Close() conn.Close()
if tries := 0; childRunning() { tries := 0
for tries < 15 && childRunning() { for tries < 15 && childRunning() {
time.Sleep(50e6 * int64(tries)) time.Sleep(50e6 * int64(tries))
tries++ tries++
@ -372,7 +372,6 @@ func TestCopyError(t *testing.T) {
t.Fatalf("post-conn.Close, expected child to be gone") t.Fatalf("post-conn.Close, expected child to be gone")
} }
} }
}
func TestDirUnix(t *testing.T) { func TestDirUnix(t *testing.T) {
if skipTest(t) || runtime.GOOS == "windows" { if skipTest(t) || runtime.GOOS == "windows" {