function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Youstina GuirguisYoustina Guirguis 

Long-Running Tests error when deploying to Production.

I have an Email Message Trigger written on the Sandbox which follows the best practices when I run the test class on the Sandbox, it passes, but when I deploy to Production I receive this error: Long-Running Tests
The following tests have long execution times. To improve each test's performance, be sure to follow Apex and SOQL best practices.

Does anybody have any idea what I should do to pass the test class on Production?

Youstina GuirguisYoustina Guirguis
@Alain Cabon

No, I am creating my own test data.
Alain CabonAlain Cabon
You are sure that "Long-Running Tests" is for the new test of the Email Message Trigger ?  perhaps not.

 
Youstina GuirguisYoustina Guirguis
yes I am sure!