diff --git a/tests/types_test.go b/tests/types_test.go index 78eb7b97..a6defb55 100644 --- a/tests/types_test.go +++ b/tests/types_test.go @@ -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