-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix non-deterministic error in java email service test
This commit fixes an issue where the JavaEmailServiceTest sometimes fails due to a jakarta.mail.MessagingException. The issue is encountered in the local dev environment. This is fixed by explicitly setting the from field in the MimeMessage. However, and in production, the from field should not be set as it is authenticated. The field can only be set in testing and via reflection.
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters