mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54:40 +03:00
simplify dns.MockResolver, changing MockReq to just a string representing the request
similar to Authentic/Inauthentic
This commit is contained in:
@ -39,9 +39,9 @@ func TestLookup(t *testing.T) {
|
||||
"_mta-sts.b.cnames.example.": "_mta-sts.c.cnames.example.",
|
||||
"_mta-sts.followtemperror.example.": "_mta-sts.cnametemperror.example.",
|
||||
},
|
||||
Fail: map[dns.Mockreq]struct{}{
|
||||
{Type: "txt", Name: "_mta-sts.temperror.example."}: {},
|
||||
{Type: "cname", Name: "_mta-sts.cnametemperror.example."}: {},
|
||||
Fail: []string{
|
||||
"txt _mta-sts.temperror.example.",
|
||||
"cname _mta-sts.cnametemperror.example.",
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user