aboutsummaryrefslogtreecommitdiff
path: root/test/proxy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/proxy_test.go')
-rw-r--r--test/proxy_test.go14
1 files changed, 2 insertions, 12 deletions
diff --git a/test/proxy_test.go b/test/proxy_test.go
index 1e90048f6..01402ed27 100644
--- a/test/proxy_test.go
+++ b/test/proxy_test.go
@@ -25,15 +25,10 @@ func TestLookupProxy(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()
log.SetOutput(ioutil.Discard)
@@ -69,15 +64,10 @@ func TestLookupDnsWithForcedTcp(t *testing.T) {
}
`
- i, err := CoreDNSServer(corefile)
+ i, _, tcp, err := CoreDNSServerAndPorts(corefile)
if err != nil {
t.Fatalf("Could not get CoreDNS serving instance: %s", err)
}
-
- _, tcp := CoreDNSServerPorts(i, 0)
- if tcp == "" {
- t.Fatalf("Could not get TCP listening port")
- }
defer i.Stop()
log.SetOutput(ioutil.Discard)