tests: increase TLSHandshakeTimeout to help slow tests (#6864)

Fixes https://github.com/hashicorp/consul/issues/6858.
This commit is contained in:
Hans Hasselberg 2019-12-05 13:20:07 +01:00 committed by GitHub
parent 08aa4364a3
commit ad65068d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ func TestHTTPServer_H2(t *testing.T) {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)
} }
transport := api.DefaultConfig().Transport transport := api.DefaultConfig().Transport
transport.TLSHandshakeTimeout = 30 * time.Second
transport.TLSClientConfig = tlsccfg transport.TLSClientConfig = tlsccfg
if err := http2.ConfigureTransport(transport); err != nil { if err := http2.ConfigureTransport(transport); err != nil {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)