Browse Source

Merge pull request #38445 from thaJeztah/dont_use_deprecated_withdialer

Replace deprecated client.WithDialer()
Sebastiaan van Stijn 6 years ago
parent
commit
53bb992c3b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      integration/plugin/authz/authz_plugin_test.go

+ 1 - 1
integration/plugin/authz/authz_plugin_test.go

@@ -143,7 +143,7 @@ func newTLSAPIClient(host, cacertPath, certPath, keyPath string) (client.APIClie
 	}
 	}
 	return client.NewClientWithOpts(
 	return client.NewClientWithOpts(
 		client.WithTLSClientConfig(cacertPath, certPath, keyPath),
 		client.WithTLSClientConfig(cacertPath, certPath, keyPath),
-		client.WithDialer(dialer),
+		client.WithDialContext(dialer.DialContext),
 		client.WithHost(host))
 		client.WithHost(host))
 }
 }