File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
amazonqTest/chat/controller Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1314,8 +1314,9 @@ export class TestController {
1314
1314
'Deleting output.log and temp result directory. testGenerationLogsDir: %s' ,
1315
1315
testGenerationLogsDir
1316
1316
)
1317
- if ( await fs . existsFile ( path . join ( testGenerationLogsDir , 'output.log' ) ) ) {
1318
- await fs . delete ( path . join ( testGenerationLogsDir , 'output.log' ) )
1317
+ const outputLogPath = path . join ( testGenerationLogsDir , 'output.log' )
1318
+ if ( await fs . existsFile ( outputLogPath ) ) {
1319
+ await fs . delete ( outputLogPath )
1319
1320
}
1320
1321
if (
1321
1322
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