From 5a46cf1d48c015e154b38bba4258bc060d3c045d Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 24 Nov 2014 10:16:47 +0100 Subject: [PATCH] Be a little more generous with HTTP timeouts --- test/httpstress_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/httpstress_test.go b/test/httpstress_test.go index e42fd1f2..6b11c460 100644 --- a/test/httpstress_test.go +++ b/test/httpstress_test.go @@ -53,12 +53,12 @@ func TestStressHTTP(t *testing.T) { tr := &http.Transport{ TLSClientConfig: tc, DisableKeepAlives: true, - ResponseHeaderTimeout: time.Second, - TLSHandshakeTimeout: time.Second, + ResponseHeaderTimeout: 10 * time.Second, + TLSHandshakeTimeout: 10 * time.Second, } client := &http.Client{ Transport: tr, - Timeout: 2 * time.Second, + Timeout: 10 * time.Second, } var wg sync.WaitGroup t0 := time.Now()