From f901b0cefa1475c83e6b6dc859ef35675feb41e1 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 24 Aug 2017 11:35:14 +0100 Subject: tests: CoreDNSServerAndPorts (#972) * tests: CoreDNSServerAndPorts Copy from kubernetes.go and renamed to fit the style, adapted almost all callers. This is a mechanicl change, no testdata was changed. * typos --- test/grpc_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/grpc_test.go') 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)) -- cgit v1.2.3