Skip to content

Commit

Permalink
fix: use native clearInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Apr 16, 2024
1 parent 506057b commit ec27630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/streaming/streamingClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import {
ApexTestQueueItemStatus,
TestRunIdResult
} from '../tests/types';
import type { Duration } from '@salesforce/kit';
import { clearInterval } from 'timers';
import { Duration } from '@salesforce/kit';

const TEST_RESULT_CHANNEL = '/systemTopic/TestResult';
export const DEFAULT_STREAMING_TIMEOUT_SEC = 14400;
Expand Down
6 changes: 1 addition & 5 deletions src/tests/asyncTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ export class AsyncTests {
queueItem = await sClient.handler(undefined, testRunId);
} else {
queueItem = (
(await sClient.subscribe(
undefined,
testRunId,
undefined
)) as AsyncTestRun
(await sClient.subscribe(undefined, testRunId)) as AsyncTestRun
).queueItem;
runResult = await this.checkRunStatus(testRunId);
}
Expand Down

0 comments on commit ec27630

Please sign in to comment.