aboutsummaryrefslogtreecommitdiff
path: root/test/chaos_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/chaos_test.go')
-rw-r--r--test/chaos_test.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/chaos_test.go b/test/chaos_test.go
index 4f902c841..991b6aa85 100644
--- a/test/chaos_test.go
+++ b/test/chaos_test.go
@@ -18,18 +18,12 @@ func TestChaos(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)
}
- // Stop the server.
defer i.Stop()
- udp, _ := CoreDNSServerPorts(i, 0)
- if udp == "" {
- t.Fatalf("Could not get UDP listening port")
- }
-
log.SetOutput(ioutil.Discard)
m := new(dns.Msg)