Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
laileni-aws committed Dec 11, 2024
1 parent 4ee91ef commit da6f01e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/amazonqTest/chat/controller/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1314,8 +1314,9 @@ export class TestController {
'Deleting output.log and temp result directory. testGenerationLogsDir: %s',
testGenerationLogsDir
)
if (await fs.existsFile(path.join(testGenerationLogsDir, 'output.log'))) {
await fs.delete(path.join(testGenerationLogsDir, 'output.log'))
const outputLogPath = path.join(testGenerationLogsDir, 'output.log')
if (await fs.existsFile(outputLogPath)) {
await fs.delete(outputLogPath)
}
if (
await fs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ export async function startTestGenerationProcess(
try {
artifactMap = await getPresignedUrlAndUploadTestGen(zipMetadata)
} finally {
if (await fs.existsFile(path.join(testGenerationLogsDir, 'output.log'))) {
await fs.delete(path.join(testGenerationLogsDir, 'output.log'))
const outputLogPath = path.join(testGenerationLogsDir, 'output.log')
if (await fs.existsFile(outputLogPath)) {
await fs.delete(outputLogPath)
}
await zipUtil.removeTmpFiles(zipMetadata)
session.artifactsUploadDuration = performance.now() - uploadStartTime
Expand Down

0 comments on commit da6f01e

Please sign in to comment.