Tests: Replace deprecated grpc.Dial
by grpc.NewClient
. (#11468)
This commit is contained in:
parent
d6dad98091
commit
c36c8dee26
1 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - GRPC", func() {
|
|||
})
|
||||
|
||||
//nolint:goconst //string interpolation
|
||||
conn, err := grpc.Dial(f.GetNginxIP()+":443",
|
||||
conn, err := grpc.NewClient(f.GetNginxIP()+":443",
|
||||
grpc.WithTransportCredentials(
|
||||
credentials.NewTLS(&tls.Config{
|
||||
ServerName: echoHost,
|
||||
|
@ -165,7 +165,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - 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,
|
||||
|
@ -239,7 +239,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - GRPC", func() {
|
|||
return strings.Contains(server, "grpc_pass grpcs://upstream_balancer;")
|
||||
})
|
||||
|
||||
conn, err := grpc.Dial(f.GetNginxIP()+":443",
|
||||
conn, err := grpc.NewClient(f.GetNginxIP()+":443",
|
||||
grpc.WithTransportCredentials(
|
||||
credentials.NewTLS(&tls.Config{
|
||||
ServerName: echoHost,
|
||||
|
|
Loading…
Reference in a new issue