aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-11-10 23:03:06 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-11-10 23:27:10 +0000
commita501fef3455a8e0ff0424bb29a9403d7539c6164 (patch)
tree3090d7aab84882cdf39822d3a51a7886089431cd
parentcaa434d28063b4532bc362d50285230597d6d1f6 (diff)
downloadgo-a501fef3455a8e0ff0424bb29a9403d7539c6164.tar.gz
go-a501fef3455a8e0ff0424bb29a9403d7539c6164.zip
net/http: deflake TestClientTimeout
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>
-rw-r--r--src/net/http/client_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/client_test.go b/src/net/http/client_test.go
index dc6d339264..b1677c1e08 100644
--- a/src/net/http/client_test.go
+++ b/src/net/http/client_test.go
@@ -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):