aws/aws-toolkit-vscode

unreliable test: Ec2ParentNode.updatePendingNode: undefined (reading 'updateStatus)

justinmk3 opened this issue · 0 comments

seen in linux unit test CI (which is the only CI that checks for unhandled promise rejections)

rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading 'updateStatus')
stack trace: TypeError: Cannot read properties of undefined (reading 'updateStatus')
    at Ec2ParentNode.updatePendingNode (/codebuild/output/src907355547/src/github.com/aws/aws-toolkit-vscode/packages/core/src/awsService/ec2/explorer/ec2ParentNode.ts:63:20)
    at Ec2ParentNode.updatePendingNodes (/codebuild/output/src907355547/src/github.com/aws/aws-toolkit-vscode/packages/core/src/awsService/ec2/explorer/ec2ParentNode.ts:58:24)
    at PollingSet.poll (/codebuild/output/src907355547/src/github.com/aws/aws-toolkit-vscode/packages/core/src/shared/utilities/pollingSet.ts:42:14)
    at Timeout._onTimeout (/codebuild/output/src907355547/src/github.com/aws/aws-toolkit-vscode/packages/core/src/shared/utilities/pollingSet.ts:50:81)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
Cannot read properties of undefined (reading 'updateStatus'): TypeError: Cannot read properties of undefined (reading 'updateStatus')
    at Ec2ParentNode.updatePendingNode (/codebuild/output/src907355547/src/github.com/aws/aws-toolkit-vscode/packages/core/src/awsService/ec2/explorer/ec2ParentNode.ts:63:20)
    at Ec2ParentNode.updatePendingNodes (/codebuild/output/src907355547/src/github.com/aws/aws-toolkit-vscode/packages/core/src/awsService/ec2/explorer/ec2ParentNode.ts:58:24)
    at PollingSet.poll (/codebuild/output/src907355547/src/github.com/aws/aws-toolkit-vscode/packages/core/src/shared/utilities/pollingSet.ts:42:14)
    at Timeout._onTimeout (/codebuild/output/src907355547/src/github.com/aws/aws-toolkit-vscode/packages/core/src/shared/utilities/pollingSet.ts:50:81)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)

attempted fix: #5698