author | Alberto Bertogli
<albertito@blitiri.com.ar> 2023-05-24 21:42:54 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2023-05-24 21:42:54 UTC |
parent | 1427d9a562871c2af6d993d80e8cecbb5a6707ba |
internal/dnsserver/caching_test.go | +1 | -1 |
tests/generate_cert.go | +1 | -0 |
tests/minidns.go | +4 | -4 |
diff --git a/internal/dnsserver/caching_test.go b/internal/dnsserver/caching_test.go index a759f04..b0f05a7 100644 --- a/internal/dnsserver/caching_test.go +++ b/internal/dnsserver/caching_test.go @@ -171,7 +171,7 @@ func TestWantToCache(t *testing.T) { r = reply.Copy() r.Question = []dns.Question{ - dns.Question{"other.", dns.TypeMX, dns.ClassINET}} + {"other.", dns.TypeMX, dns.ClassINET}} checkWantToCache(t, q, r, "reply question does not match") } diff --git a/tests/generate_cert.go b/tests/generate_cert.go index 678c3fa..07daed7 100644 --- a/tests/generate_cert.go +++ b/tests/generate_cert.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build ignore // +build ignore // Generate a self-signed X.509 certificate for a TLS server. Outputs to diff --git a/tests/minidns.go b/tests/minidns.go index 14b1eaf..1cc8843 100644 --- a/tests/minidns.go +++ b/tests/minidns.go @@ -1,21 +1,21 @@ +//go:build ignore // +build ignore // minidns is a trivial DNS server used for testing. // // It takes an "answers" file which contains lines with the following format: // -// <domain> <type> <value> +// <domain> <type> <value> // // For example: // -// blah A 1.2.3.4 -// blah MX mx1 +// blah A 1.2.3.4 +// blah MX mx1 // // Supported types: A, AAAA, MX, TXT. // // It's only meant to be used for testing, so it's not robust, performant, or // standards compliant. -// package main import (