From becbcff749c0be33225c6c18837a31b41a5f4f6a Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Sun, 7 Jun 2026 22:23:20 +0200 Subject: Fix new linter violations Signed-off-by: Erik Godding Boye --- example/example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/example_test.go') diff --git a/example/example_test.go b/example/example_test.go index ef4dde3..76796b4 100644 --- a/example/example_test.go +++ b/example/example_test.go @@ -59,7 +59,7 @@ func TestExampleSolver_Present_Cleanup(t *testing.T) { msg.Id = dns.Id() msg.RecursionDesired = true msg.Question = make([]dns.Question, 1) - msg.Question[0] = dns.Question{dns.Fqdn(test.hostname), dns.TypeTXT, dns.ClassINET} + msg.Question[0] = dns.Question{Name: dns.Fqdn(test.hostname), Qtype: dns.TypeTXT, Qclass: dns.ClassINET} in, err := dns.Exchange(msg, "127.0.0.1:"+port.String()) assert.NoError(t, err, "Presented record %s not resolvable", test.hostname) @@ -84,7 +84,7 @@ func TestExampleSolver_Present_Cleanup(t *testing.T) { msg.Id = dns.Id() msg.RecursionDesired = true msg.Question = make([]dns.Question, 1) - msg.Question[0] = dns.Question{dns.Fqdn(test.hostname), dns.TypeTXT, dns.ClassINET} + msg.Question[0] = dns.Question{Name: dns.Fqdn(test.hostname), Qtype: dns.TypeTXT, Qclass: dns.ClassINET} in, err := dns.Exchange(msg, "127.0.0.1:"+port.String()) assert.NoError(t, err, "Presented record %s not resolvable", test.hostname) -- cgit v1.2.3