@salesforce/apex-node
Advanced tools
Comparing version 5.0.0-beta.1 to 5.0.0-beta.2
@@ -135,3 +135,3 @@ "use strict"; | ||
// start timeout | ||
setTimeout(() => { | ||
const timeoutId = setTimeout(() => { | ||
this.disconnect(); | ||
@@ -147,2 +147,3 @@ clearInterval(intervalId); | ||
clearInterval(intervalId); | ||
clearTimeout(timeoutId); | ||
subscriptionResolve({ | ||
@@ -165,2 +166,3 @@ runId: this.subscribedTestRunId, | ||
clearInterval(intervalId); | ||
clearTimeout(timeoutId); | ||
subscriptionResolve({ | ||
@@ -177,2 +179,3 @@ runId: this.subscribedTestRunId, | ||
clearInterval(intervalId); | ||
clearTimeout(timeoutId); | ||
subscriptionReject(e); | ||
@@ -190,2 +193,3 @@ }); | ||
clearInterval(intervalId); | ||
clearTimeout(timeoutId); | ||
subscriptionResolve({ | ||
@@ -202,2 +206,3 @@ runId: this.subscribedTestRunId, | ||
this.disconnect(); | ||
clearTimeout(timeoutId); | ||
clearInterval(intervalId); | ||
@@ -204,0 +209,0 @@ subscriptionReject(e); |
@@ -17,2 +17,3 @@ import { Connection } from '@salesforce/core'; | ||
* @param token cancellation token | ||
* @param timeout Duration to wait before returning a TestRunIdResult | ||
*/ | ||
@@ -19,0 +20,0 @@ runTests(options: AsyncTestConfiguration | AsyncTestArrayConfiguration, codeCoverage?: boolean, exitOnTestRunId?: boolean, progress?: Progress<ApexTestProgressValue>, token?: CancellationToken, timeout?: Duration): Promise<TestResult | TestRunIdResult>; |
@@ -69,2 +69,3 @@ "use strict"; | ||
* @param token cancellation token | ||
* @param timeout Duration to wait before returning a TestRunIdResult | ||
*/ | ||
@@ -71,0 +72,0 @@ async runTests(options, codeCoverage = false, exitOnTestRunId = false, progress, token, timeout) { |
{ | ||
"name": "@salesforce/apex-node", | ||
"description": "Salesforce JS library for Apex", | ||
"version": "5.0.0-beta.1", | ||
"version": "5.0.0-beta.2", | ||
"author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/forcedotcom/salesforcedx-apex/issues", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
382776
6005