simplify dns.MockResolver, changing MockReq to just a string representing the request

similar to Authentic/Inauthentic
This commit is contained in:
Mechiel Lukkien
2023-10-12 16:07:25 +02:00
parent c095f3f39c
commit 7dce883097
10 changed files with 57 additions and 54 deletions

View File

@ -18,8 +18,8 @@ func TestLookup(t *testing.T) {
"_smtp._tls.malformed.example.": {"v=TLSRPTv1; bad"},
"_smtp._tls.other.example.": {"other"},
},
Fail: map[dns.Mockreq]struct{}{
{Type: "txt", Name: "_smtp._tls.temperror.example."}: {},
Fail: []string{
"txt _smtp._tls.temperror.example.",
},
}