Skip to content

Commit 516f4db

Browse files
committed
update threshold add comment
1 parent 08647ab commit 516f4db

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,25 @@ describe('prepareRepoDataPerformanceTest', function () {
2121
assert.strictEqual(telemetry.repositorySize, expectedSize)
2222
assert.strictEqual(result.zipFileChecksum.length, 44)
2323
}
24-
24+
/**
25+
* Tests 250 files w/ 10 bytes each.
26+
* Running more files can lead to flaky test from timeout.
27+
*/
2528
performanceTest(
2629
{
2730
testRuns: 10,
2831
linux: {
29-
userCpuUsage: 80,
32+
userCpuUsage: 90,
33+
systemCpuUsage: 35,
3034
heapTotal: 4,
3135
},
3236
darwin: {
33-
userCpuUsage: 80,
37+
userCpuUsage: 90,
3438
systemCpuUsage: 35,
3539
heapTotal: 4,
3640
},
3741
win32: {
38-
userCpuUsage: 80,
42+
userCpuUsage: 90,
3943
systemCpuUsage: 35,
4044
heapTotal: 4,
4145
},
@@ -60,7 +64,9 @@ describe('prepareRepoDataPerformanceTest', function () {
6064
}
6165
}
6266
)
63-
67+
/**
68+
* Runs 10 files of size 1000 bytes.
69+
*/
6470
performanceTest(
6571
{
6672
testRuns: 10,

0 commit comments

Comments
 (0)