Client's FetchCert now requires to do the discovery before fetching a cert from RFC 8555 compliant CA using POST-as-GET requests. Some tests initialized the client without providing a directory metadata, making it do network roundtrips to the default CA. This CL sets a non-nil directory metadata to prevent unnecessary network roundtrips to an actual CA during tests. Change-Id: Icaa6c2c2fd25ae8e5b1b44c6c3dafa246e6bdbb0 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/200637 Run-TryBot: Alex Vaghin <ddos@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>