aboutsummaryrefslogtreecommitdiff
path: root/test/grpc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/grpc_test.go')
-rw-r--r--test/grpc_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/grpc_test.go b/test/grpc_test.go
index 4795819fb..50d1643fb 100644
--- a/test/grpc_test.go
+++ b/test/grpc_test.go
@@ -20,12 +20,10 @@ func TestGrpc(t *testing.T) {
whoami
}
`
- g, err := CoreDNSServer(corefile)
+ g, _, tcp, err := CoreDNSServerAndPorts(corefile)
if err != nil {
t.Fatalf("Could not get CoreDNS serving instance: %s", err)
}
-
- _, tcp := CoreDNSServerPorts(g, 0)
defer g.Stop()
conn, err := grpc.Dial(tcp, grpc.WithInsecure(), grpc.WithBlock(), grpc.WithTimeout(5*time.Second))