Skip to content

Commit 30231d0

Browse files
wlgns5376claude
andcommitted
fix(test): Logger 테스트의 일자별 로그 파일 cleanup 문제 해결
- 일자별 로그 파일도 createdPaths에 추가하여 cleanup 대상에 포함 - 테스트 간 파일 충돌 문제 해결 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8fd6290 commit 30231d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/unit/services/logger.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@ describe('Logger', () => {
416416
const currentDate = getCurrentDateString();
417417
const dailyLogFile = path.join(uniqueLogDir, `${currentDate}.log`);
418418

419+
// 생성된 파일도 추적하여 cleanup 대상에 포함
420+
createdPaths.add(dailyLogFile);
421+
419422
// 안전한 파일 생성을 위해 재시도 로직 추가
420423
let retries = 3;
421424
while (retries > 0) {

0 commit comments

Comments
 (0)