diff options
Diffstat (limited to 'test/file_cname_proxy_test.go')
-rw-r--r-- | test/file_cname_proxy_test.go | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/test/file_cname_proxy_test.go b/test/file_cname_proxy_test.go index a6ab8e59e..6630abb42 100644 --- a/test/file_cname_proxy_test.go +++ b/test/file_cname_proxy_test.go @@ -27,15 +27,10 @@ func TestZoneExternalCNAMELookupWithoutProxy(t *testing.T) { file ` + name + ` } ` - i, err := CoreDNSServer(corefile) + i, udp, _, err := CoreDNSServerAndPorts(corefile) if err != nil { t.Fatalf("Could not get CoreDNS serving instance: %s", err) } - - udp, _ := CoreDNSServerPorts(i, 0) - if udp == "" { - t.Fatalf("Could not get UDP listening port") - } defer i.Stop() p := proxy.NewLookup([]string{udp}) @@ -68,15 +63,10 @@ func TestZoneExternalCNAMELookupWithProxy(t *testing.T) { } } ` - i, err := CoreDNSServer(corefile) + i, udp, _, err := CoreDNSServerAndPorts(corefile) if err != nil { t.Fatalf("Could not get CoreDNS serving instance: %s", err) } - - udp, _ := CoreDNSServerPorts(i, 0) - if udp == "" { - t.Fatalf("Could not get UDP listening port") - } defer i.Stop() p := proxy.NewLookup([]string{udp}) |