]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: wait longer for subprocess to startup in test
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 6 May 2016 18:21:22 +0000 (18:21 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 6 May 2016 18:42:18 +0000 (18:42 +0000)
Might deflake the occasional linux-amd64-race failures.

Change-Id: I273b0e32bb92236168eb99887b166e079799c1f1
Reviewed-on: https://go-review.googlesource.com/22858
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/http/serve_test.go

index 661f355d0dd7090736b31ec188458f93c73b86d5..b34875f061a06260e9018ae31b1198a869b5286e 100644 (file)
@@ -4268,7 +4268,7 @@ func BenchmarkClient(b *testing.B) {
        // Wait for the server process to respond.
        url := "http://localhost:" + port + "/"
        for i := 0; i < 100; i++ {
-               time.Sleep(50 * time.Millisecond)
+               time.Sleep(100 * time.Millisecond)
                if _, err := getNoBody(url); err == nil {
                        break
                }