tests: increase TLSHandshakeTimeout to help slow tests (#6864)
Fixes https://github.com/hashicorp/consul/issues/6858.
This commit is contained in:
parent
08aa4364a3
commit
ad65068d6e
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue