diff options
Diffstat (limited to 'test/grpc_test.go')
-rw-r--r-- | test/grpc_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/grpc_test.go b/test/grpc_test.go index 55395758d..37504c930 100644 --- a/test/grpc_test.go +++ b/test/grpc_test.go @@ -9,6 +9,7 @@ import ( "github.com/miekg/dns" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) func TestGrpc(t *testing.T) { @@ -24,7 +25,7 @@ func TestGrpc(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - conn, err := grpc.DialContext(ctx, tcp, grpc.WithInsecure(), grpc.WithBlock()) + conn, err := grpc.DialContext(ctx, tcp, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithBlock()) if err != nil { t.Fatalf("Expected no error but got: %s", err) } |