Skip to content

Commit

Permalink
Use non-deprecated client constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Jun 11, 2024
1 parent 2838d55 commit 30d25f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestServer_TLS(t *testing.T) {

// Validate gRPC TLS
creds := credentials.NewTLS(&tls.Config{InsecureSkipVerify: true})
cc, err := grpc.Dial(srv.GRPCAddress().String(), grpc.WithTransportCredentials(creds))
cc, err := grpc.NewClient(srv.GRPCAddress().String(), grpc.WithTransportCredentials(creds))
require.NoError(t, err)
_, err = grpc_health_v1.NewHealthClient(cc).Check(context.Background(), &grpc_health_v1.HealthCheckRequest{})
require.NoError(t, err)
Expand Down

0 comments on commit 30d25f4

Please sign in to comment.