mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
fix: lint issues from plugin/forward and plugin/pkg/dnstest (#7539)
To fix CI pipeline issues on master. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -429,7 +429,6 @@ func TestFailfastAllUnhealthyUpstreams(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFailover(t *testing.T) {
|
||||
|
||||
server_fail_s := dnstest.NewMultipleServer(func(w dns.ResponseWriter, r *dns.Msg) {
|
||||
ret := new(dns.Msg)
|
||||
ret.SetRcode(r, dns.RcodeServerFailure)
|
||||
|
||||
@@ -65,10 +65,10 @@ func NewMultipleServer(f dns.HandlerFunc) *Server {
|
||||
ch2 := make(chan bool)
|
||||
|
||||
s1 := &dns.Server{
|
||||
Handler: dns.HandlerFunc(f),
|
||||
Handler: f,
|
||||
} // udp
|
||||
s2 := &dns.Server{
|
||||
Handler: dns.HandlerFunc(f),
|
||||
Handler: f,
|
||||
} // tcp
|
||||
|
||||
for range 5 { // 5 attempts
|
||||
|
||||
Reference in New Issue
Block a user