remove unneeded network from custom dial function used in HTTP/3 (#3368)

This commit is contained in:
Marten Seemann
2022-04-03 14:27:55 +01:00
committed by GitHub
parent fa0dba963a
commit 332473668a
4 changed files with 5 additions and 6 deletions

View File

@@ -127,7 +127,7 @@ var _ = Describe("RoundTripper", func() {
It("uses the custom dialer, if provided", func() {
var dialed bool
dialer := func(_ context.Context, _, _ string, tlsCfgP *tls.Config, cfg *quic.Config) (quic.EarlyConnection, error) {
dialer := func(_ context.Context, _ string, tlsCfgP *tls.Config, cfg *quic.Config) (quic.EarlyConnection, error) {
dialed = true
return nil, errors.New("handshake error")
}