Skip to content

Commit 3f80141

Browse files
authored
fix(test): rebase test w/ new telemetry (aws#5726)
## Problem Last PR: aws#5670 was not rebased onto aws@a386cc3, so did not include relevant telemetry changes. Therefore tests passed until the merge happened. ## Solution change type signature to reflect telemetry changes. --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 25c28d0 commit 3f80141

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/test/amazonqFeatureDev/prepareRepoData.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { WorkspaceFolder } from 'vscode'
77
import { performanceTest } from '../../shared/performance/performance'
88
import { createTestWorkspace } from '../testUtil'
99
import { prepareRepoData, TelemetryHelper } from '../../amazonqFeatureDev'
10-
import { AmazonqCreateUpload, getRandomString, Metric } from '../../shared'
10+
import { AmazonqCreateUpload, getRandomString } from '../../shared'
11+
import { Span } from '../../shared/telemetry'
1112

1213
type resultType = {
1314
zipFileBuffer: Buffer
@@ -48,7 +49,7 @@ function performanceTestWrapper(numFiles: number, fileSize: number) {
4849
execute: async (workspace: WorkspaceFolder) => {
4950
return await prepareRepoData([workspace.uri.fsPath], [workspace], telemetry, {
5051
record: () => {},
51-
} as unknown as Metric<AmazonqCreateUpload>)
52+
} as unknown as Span<AmazonqCreateUpload>)
5253
},
5354
verify: async (_w: WorkspaceFolder, result: resultType) => {
5455
verifyResult(result, telemetry, numFiles * fileSize)

0 commit comments

Comments
 (0)