From f457cfa9652817b806b30d7bd70775d1c33f56a7 Mon Sep 17 00:00:00 2001 From: Hans Hasselberg Date: Thu, 5 Dec 2019 13:20:07 +0100 Subject: [PATCH] tests: increase TLSHandshakeTimeout to help slow tests (#6864) Fixes https://github.com/hashicorp/consul/issues/6858. --- agent/http_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/http_test.go b/agent/http_test.go index 37ec2db201..d37a61c44e 100644 --- a/agent/http_test.go +++ b/agent/http_test.go @@ -154,6 +154,7 @@ func TestHTTPServer_H2(t *testing.T) { t.Fatalf("err: %v", err) } transport := api.DefaultConfig().Transport + transport.TLSHandshakeTimeout = 30 * time.Second transport.TLSClientConfig = tlsccfg if err := http2.ConfigureTransport(transport); err != nil { t.Fatalf("err: %v", err)