aboutsummaryrefslogtreecommitdiff
path: root/test/etcd_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/etcd_test.go')
-rw-r--r--test/etcd_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/etcd_test.go b/test/etcd_test.go
index f8a699661..eaab7a730 100644
--- a/test/etcd_test.go
+++ b/test/etcd_test.go
@@ -47,15 +47,10 @@ func TestEtcdStubAndProxyLookup(t *testing.T) {
proxy . 8.8.8.8:53
}`
- 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()