mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 17:24:20 -04:00
Fixup grpc test (#6844)
Remove deprecated `grpc.WithBlock()`. This option is a noop with `grpc.NewClient()`. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ func TestGrpc(t *testing.T) {
|
|||||||
}
|
}
|
||||||
defer g.Stop()
|
defer g.Stop()
|
||||||
|
|
||||||
conn, err := grpc.NewClient(tcp, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithBlock())
|
conn, err := grpc.NewClient(tcp, grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Expected no error but got: %s", err)
|
t.Fatalf("Expected no error but got: %s", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user