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:
Ville Vesilehto
2025-09-14 01:14:10 +03:00
committed by GitHub
parent 9683de0feb
commit c149567dbe
2 changed files with 2 additions and 3 deletions

View File

@@ -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)

View File

@@ -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