Skip to content

Commit ccc1f7a

Browse files
committed
disable polling set in tests that dont use it
1 parent 63d5450 commit ccc1f7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/test/awsService/ec2/explorer/ec2InstanceNode.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
import { Ec2Client, SafeEc2Instance, getNameOfInstance } from '../../../../shared/clients/ec2Client'
1414
import { Ec2ParentNode } from '../../../../awsService/ec2/explorer/ec2ParentNode'
1515
import * as sinon from 'sinon'
16+
import { PollingSet } from '../../../../shared/utilities/pollingSet'
1617

1718
describe('ec2InstanceNode', function () {
1819
let testNode: Ec2InstanceNode
@@ -32,6 +33,9 @@ describe('ec2InstanceNode', function () {
3233
LastSeenStatus: 'running',
3334
}
3435
sinon.stub(Ec2InstanceNode.prototype, 'updateStatus')
36+
// Don't want to be polling here, that is tested in ../ec2ParentNode.test.ts
37+
// disabled here for convenience (avoiding race conditions with timeout)
38+
sinon.stub(PollingSet.prototype, 'start')
3539
const testClient = new Ec2Client('')
3640
const testParentNode = new Ec2ParentNode(testRegion, testPartition, testClient)
3741
testNode = new Ec2InstanceNode(testParentNode, testClient, 'testRegion', 'testPartition', testInstance)

0 commit comments

Comments
 (0)