diff options
author | 2022-07-10 20:06:33 +0200 | |
---|---|---|
committer | 2022-07-10 11:06:33 -0700 | |
commit | c2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch) | |
tree | 3af5d63a0dccaa769507e34a32b6378ccef880c4 /test/grpc_test.go | |
parent | abc5ac8017b0f434b5845321fb1f405ded7774d4 (diff) | |
download | coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.gz coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.zst coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.zip |
add golangci-lint linter (#5499)
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) } |