File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
amazonqTest/chat/controller Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ export class TestController {
286
286
} ) {
287
287
const { error, tabID } = data
288
288
289
- // If user reached montly limit for builderId
289
+ // If user reached monthly limit for builderId
290
290
if ( error . code === 'CreateTestJobError' ) {
291
291
if ( error . message . includes ( CodeWhispererConstants . utgLimitReached ) ) {
292
292
getLogger ( ) . error ( 'Monthly quota reached for QSDA actions.' )
@@ -1309,8 +1309,9 @@ export class TestController {
1309
1309
'Deleting output.log and temp result directory. testGenerationLogsDir: %s' ,
1310
1310
testGenerationLogsDir
1311
1311
)
1312
- if ( await fs . existsFile ( path . join ( testGenerationLogsDir , 'output.log' ) ) ) {
1313
- await fs . delete ( path . join ( testGenerationLogsDir , 'output.log' ) )
1312
+ const outputLogPath = path . join ( testGenerationLogsDir , 'output.log' )
1313
+ if ( await fs . existsFile ( outputLogPath ) ) {
1314
+ await fs . delete ( outputLogPath )
1314
1315
}
1315
1316
if (
1316
1317
await fs
Original file line number Diff line number Diff line change @@ -75,8 +75,9 @@ export async function startTestGenerationProcess(
75
75
try {
76
76
artifactMap = await getPresignedUrlAndUploadTestGen ( zipMetadata )
77
77
} finally {
78
- if ( await fs . existsFile ( path . join ( testGenerationLogsDir , 'output.log' ) ) ) {
79
- await fs . delete ( path . join ( testGenerationLogsDir , 'output.log' ) )
78
+ const outputLogPath = path . join ( testGenerationLogsDir , 'output.log' )
79
+ if ( await fs . existsFile ( outputLogPath ) ) {
80
+ await fs . delete ( outputLogPath )
80
81
}
81
82
await zipUtil . removeTmpFiles ( zipMetadata )
82
83
session . artifactsUploadDuration = performance . now ( ) - uploadStartTime
You can’t perform that action at this time.
0 commit comments