Loading

Apex Test Failure due to 'Connection Canceled' seen in UI but not in Deployment

Julkaisupäivä: Aug 14, 2023
Kuvaus

Customers can sometimes see a difference between the number of Apex Test failures when running all tests or a single test via the UI compared to the failure count observed when performing a deployment. A comparison between the differences leads to the conclusion that the differences can be accounted for by observing 'Connection Canceled' errors in the UI but not in the deployment, why is this?

Ratkaisu

During deployments, we do not do fixed test run time limit checks, whereas via the UI we do (either 'Run All Tests' or running a test for an individual class). In the deployment context, this limit is a bit relaxed. If the differences between the test failures seen in the UI compared to the deployment are solely down to 'Connection Canceled' errors, then this can be deemed expected behavior as we intentionally do not do this hard check in a deployment.

NOTE: Same behavior can also be observed when simply running tests outside of a deployment/validation scenario via the Metadata API, again this is expected behavior

Knowledge-artikkelin numero

000396102

 
Ladataan
Salesforce Help | Article