test: be less aggressive while checking for message structure.

This commit is contained in:
Romain LE JEUNE 2023-10-09 11:15:06 +02:00 committed by Gjorgji Slamkov
parent ab9a758d63
commit d7dadd7578
1 changed files with 1 additions and 3 deletions

View File

@ -386,9 +386,7 @@ func matchContent(have MessageSection, want MessageSection) bool {
if want.BodyIs != "" && strings.TrimSpace(have.BodyIs) != strings.TrimSpace(want.BodyIs) {
return false
}
if len(have.Sections) != len(want.Sections) {
return false
}
for i, section := range want.Sections {
if !matchContent(have.Sections[i], section) {
return false