Loading
Salesforce Help 사이트 “Help Agent powered by Fin” 도입 안내더 많이 읽기
Tableau 고객 대상: Tableau를 이용하는 고객이 Help 사이트에서 사례(케이스)를 등록할 수 없는 경우의 대체 수단더 많이 읽기
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

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

게시 일자: Aug 21, 2026
상세 설명

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 they can be accounted for by observing 'Connection Canceled' errors in the UI but not in the deployment. Why does this happen?

솔루션

Why This Happens

During deployments, Salesforce does not enforce a fixed Apex test run time limit check, whereas running tests via the UI (either 'Run All Tests' or running a test for an individual class) does enforce this check. In the deployment context, this limit is relaxed. If the differences between the test failures seen in the UI compared to the deployment are solely down to 'Connection Canceled' errors, this is expected behavior — Salesforce intentionally does not perform this hard check during a deployment.

Note: Metadata API Behavior

The same behavior can also be observed when simply running tests outside of a deployment or validation scenario, via the Metadata API. This is also expected behavior.

Knowledge 기사 번호

000396102

 
로드 중
Salesforce Help | Article