Skip to content

Commit 7a3b885

Browse files
committed
try different type
1 parent ab817b1 commit 7a3b885

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import * as sinon from 'sinon'
77
import { assertTelemetry } from '../../testUtil'
88
import { Ec2InstanceNode } from '../../../awsService/ec2/explorer/ec2InstanceNode'
99
import { Ec2ParentNode } from '../../../awsService/ec2/explorer/ec2ParentNode'
10-
import { Ec2Wrapper, SafeEc2Instance } from '../../../shared/clients/ec2Wrapper'
10+
import { Ec2Wrapper } from '../../../shared/clients/ec2Wrapper'
1111
import { Ec2Connecter } from '../../../awsService/ec2/model'
1212
import { PollingSet } from '../../../shared/utilities/pollingSet'
13+
import { InstanceStateName } from '@aws-sdk/client-ec2'
1314

1415
describe('ec2 activation', function () {
1516
let testNode: Ec2InstanceNode
@@ -24,8 +25,8 @@ describe('ec2 activation', function () {
2425
const parentNode = new Ec2ParentNode(testRegion, testPartition, new Ec2Wrapper(testRegion))
2526
testNode = new Ec2InstanceNode(parentNode, testClient, testRegion, testPartition, {
2627
InstanceId: 'testId',
27-
LastSeenStatus: 'status',
28-
} as SafeEc2Instance)
28+
LastSeenStatus: 'status' as InstanceStateName,
29+
})
2930
})
3031

3132
after(function () {

0 commit comments

Comments
 (0)