mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 07:36:44 +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) {
|
if want.BodyIs != "" && strings.TrimSpace(have.BodyIs) != strings.TrimSpace(want.BodyIs) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if len(have.Sections) != len(want.Sections) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
for i, section := range want.Sections {
|
for i, section := range want.Sections {
|
||||||
if !matchContent(have.Sections[i], section) {
|
if !matchContent(have.Sections[i], section) {
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user