Skip to content

Commit

Permalink
net/http: deflake TestClientTimeout
Browse files Browse the repository at this point in the history
This test was only enabled by default today so it hasn't been hardened
by build.golang.org. Welcome to the ring, TestClientTimeout.

Change-Id: I1967f6c825699f13f6c659dc14d3c3c22b965272
Reviewed-on: https://go-review.googlesource.com/33101
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
bradfitz committed Nov 10, 2016
1 parent caa434d commit a501fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/http/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1200,9 +1200,9 @@ func testClientTimeout(t *testing.T, h2 bool) {
return
}
if r.URL.Path == "/slow" {
sawSlow <- true
w.Write([]byte("Hello"))
w.(Flusher).Flush()
sawSlow <- true
select {
case <-testDone:
case <-time.After(timeout * 10):
Expand Down

0 comments on commit a501fef

Please sign in to comment.