Skip to content

Commit

Permalink
chore: fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
peternhale committed May 15, 2024
1 parent 697b584 commit fb78928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/streaming/streamingClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,10 @@ describe('Streaming API Client', () => {
mockToolingQuery.resolves(queryResponse);

const setIntervalStub = sandboxStub.stub(global, 'setInterval');
setIntervalStub.callsFake((callback) => callback.call(null));
setIntervalStub.callsFake((callback: Function) => callback.call(null));

const streamClient = new StreamingClient(mockConnection);
await streamClient.subscribe(() => Promise.resolve('707xx0000AGQ3jbQQD'));
streamClient.subscribe(() => Promise.resolve('707xx0000AGQ3jbQQD'));

await Promise.resolve();
assert.calledOnce(mockToolingQuery);
Expand Down

0 comments on commit fb78928

Please sign in to comment.