Skip to content

Commit f5f82c9

Browse files
committed
disable polling set
1 parent 4823d91 commit f5f82c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/test/awsService/ec2/activation.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ import { Ec2InstanceNode } from '../../../awsService/ec2/explorer/ec2InstanceNod
99
import { Ec2ParentNode } from '../../../awsService/ec2/explorer/ec2ParentNode'
1010
import { Ec2Client } from '../../../shared/clients/ec2Client'
1111
import { Ec2ConnectionManager } from '../../../awsService/ec2/model'
12+
import { PollingSet } from '../../../shared/utilities/pollingSet'
1213

1314
describe('ec2 telemetry', function () {
1415
let testNode: Ec2InstanceNode
1516

1617
before(function () {
1718
const testRegion = 'test-region'
1819
const testPartition = 'test-partition'
20+
// Don't want to be polling here, that is tested in ../ec2ParentNode.test.ts
21+
// disabled here for convenience (avoiding race conditions with timeout)
22+
sinon.stub(PollingSet.prototype, 'start')
1923
const testClient = new Ec2Client(testRegion)
2024
const parentNode = new Ec2ParentNode(testRegion, testPartition, new Ec2Client(testRegion))
2125
testNode = new Ec2InstanceNode(parentNode, testClient, testRegion, testPartition, {

0 commit comments

Comments
 (0)