diff options
author | 2017-08-24 11:35:14 +0100 | |
---|---|---|
committer | 2017-08-24 11:35:14 +0100 | |
commit | f901b0cefa1475c83e6b6dc859ef35675feb41e1 (patch) | |
tree | 93d6d067e1ffe7bb8cea40921d99b5088a12acb8 /test/file_srv_additional_test.go | |
parent | ea53f8c21973494d485677ca284116382ab5fa7d (diff) | |
download | coredns-f901b0cefa1475c83e6b6dc859ef35675feb41e1.tar.gz coredns-f901b0cefa1475c83e6b6dc859ef35675feb41e1.tar.zst coredns-f901b0cefa1475c83e6b6dc859ef35675feb41e1.zip |
tests: CoreDNSServerAndPorts (#972)
* tests: CoreDNSServerAndPorts
Copy from kubernetes.go and renamed to fit the style, adapted almost
all callers.
This is a mechanicl change, no testdata was changed.
* typos
Diffstat (limited to 'test/file_srv_additional_test.go')
-rw-r--r-- | test/file_srv_additional_test.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/file_srv_additional_test.go b/test/file_srv_additional_test.go index 0fad80758..1925f98c1 100644 --- a/test/file_srv_additional_test.go +++ b/test/file_srv_additional_test.go @@ -27,15 +27,10 @@ func TestZoneSRVAdditional(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}) |