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/etcd_cache_debug_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'test/etcd_cache_debug_test.go') diff --git a/test/etcd_cache_debug_test.go b/test/etcd_cache_debug_test.go index 59fdd8d6b..599e95b5c 100644 --- a/test/etcd_cache_debug_test.go +++ b/test/etcd_cache_debug_test.go @@ -27,15 +27,10 @@ func TestEtcdCacheAndDebug(t *testing.T) { cache skydns.test }` - ex, err := CoreDNSServer(corefile) + ex, udp, _, err := CoreDNSServerAndPorts(corefile) if err != nil { t.Fatalf("Could not get CoreDNS serving instance: %s", err) } - - udp, _ := CoreDNSServerPorts(ex, 0) - if udp == "" { - t.Fatalf("Could not get UDP listening port") - } defer ex.Stop() etc := etcdMiddleware() -- cgit v1.2.3