Tests: Replace deprecated grpc.Dial by grpc.NewClient. (#11462)

This commit is contained in:
Marco Ebert 2024-06-15 10:05:28 +02:00 committed by GitHub
parent 68b59db3e9
commit 0718c89203
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -86,7 +86,7 @@ var _ = framework.DescribeSetting("GRPC", func() {
return strings.Contains(server, "grpc_pass grpc://upstream_balancer;")
})
conn, err := grpc.Dial(f.GetNginxIP()+":443",
conn, err := grpc.NewClient(f.GetNginxIP()+":443",
grpc.WithTransportCredentials(
credentials.NewTLS(&tls.Config{
ServerName: echoHost,