Email template -- Queued Emails not working in UnitTest

0
I commit the EmailTemplate Email object with status Queued, so that the batch job can pick it up later and send. Somehow the commit never works, not sure if there are any entity restrictions in EmailTemplate and hence the batch job does not pick up the queued emails. However if I invoke the microflow in my unit test right after committing a email object; all in the same microflow works. So why does the commit work in the same session but not in separate sessions.  
asked
1 answers
0

Are you sure the email is not commited? Where there are any restriction, the application or the console will tell you. Is it possible that the scheduled microflow to pick op the queued emails and send them, isn't active? 

answered