Skip to content

Commit

Permalink
Merge pull request etcd-io#16791 from chaochn47/remove-deprecated-gRP…
Browse files Browse the repository at this point in the history
…C-API

remove deprecated gRPC API usage
  • Loading branch information
ahrtr authored Oct 18, 2023
2 parents 11edde9 + 3c6d2e9 commit d8c410f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/clientv3/naming/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

"github.com/stretchr/testify/assert"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
testpb "google.golang.org/grpc/interop/grpc_testing"

"go.etcd.io/etcd/client/v3/naming/endpoints"
Expand Down Expand Up @@ -75,7 +76,7 @@ func testEtcdGrpcResolver(t *testing.T, lbPolicy string) {
}

// Create connection with provided lb policy
conn, err := grpc.Dial("etcd:///foo", grpc.WithInsecure(), grpc.WithResolvers(b),
conn, err := grpc.Dial("etcd:///foo", grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithResolvers(b),
grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"loadBalancingPolicy":"%s"}`, lbPolicy)))
if err != nil {
t.Fatal("failed to connect to foo", err)
Expand Down

0 comments on commit d8c410f

Please sign in to comment.