Files
mattermost/server/platform
76b47c3ba9 Fix flaky TestSendMailPlainText (#38309)
The test used a shared Inbucket mailbox (test@example.com). Under CI
fullyparallel, other packages (e.g. invite emails) deliver to the same
address, so RetryInbucket can return that message as resultsMailbox[0]
and the HTML/text assertions fail. Scope each subtest to a unique
mailbox, matching TestSendMailWithEmbeddedFilesUsingConfig.

Tests-only change. Verified with `go test -run '^TestSendMailPlainText$' -race
-count=100` locally.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
2026-09-03 09:45:00 -03:00
..