mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
test: be less aggressive while checking for message structure.
This commit is contained in:
committed by
Gjorgji Slamkov
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
|
||||
|
||||
Reference in New Issue
Block a user