test: be less aggressive while checking for message structure.
This commit is contained in:
parent
ab9a758d63
commit
d7dadd7578
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue