mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
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
This commit is contained in:
@@ -30,12 +30,10 @@ func TestLookupBalanceRewriteCacheDnssec(t *testing.T) {
|
||||
loadbalance
|
||||
}
|
||||
`
|
||||
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)
|
||||
defer ex.Stop()
|
||||
|
||||
log.SetOutput(ioutil.Discard)
|
||||
|
||||
Reference in New Issue
Block a user