aboutsummaryrefslogtreecommitdiff
path: root/test/proxy_health_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/proxy_health_test.go')
-rw-r--r--test/proxy_health_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/proxy_health_test.go b/test/proxy_health_test.go
index 5cf168acb..34c2c24c5 100644
--- a/test/proxy_health_test.go
+++ b/test/proxy_health_test.go
@@ -22,15 +22,10 @@ func TestProxyErratic(t *testing.T) {
}
`
- backend, err := CoreDNSServer(corefile)
+ backend, udp, _, err := CoreDNSServerAndPorts(corefile)
if err != nil {
t.Fatalf("Could not get CoreDNS serving instance: %s", err)
}
-
- udp, _ := CoreDNSServerPorts(backend, 0)
- if udp == "" {
- t.Fatalf("Could not get UDP listening port")
- }
defer backend.Stop()
p := proxy.NewLookup([]string{udp})