8000 test: 올리브영 timeout 검증의 간헐 실패 수정 by hmmhmmhm · Pull Request #289 · hmmhmmhm/daiso-mcp · GitHub
[go: up one dir, main page]

Skip to content

test: 올리브영 timeout 검증의 간헐 실패 수정 - #289

Merged
hmmhmmhm merged 1 commit into
mainfrom
test/oliveyoung-timeout-clock
Oct 20, 2026
Merged

hmmhmmhm merged 1 commit into
mainfrom
test/oliveyoung-timeout-clock

Conversation

@hmmhmmhm
Copy link
Copy Markdown
Owner

main의 Coverage 검사에서 올리브영 timeoutMs 전달 테스트가 1ms 경과로 1234 대신 1233을 받아 간헐 실패했습니다. 실제 제한 시간 예산을 계산하는 동작은 정상이며, 정확한 전달값을 검증하는 테스트가 실시간 시계에 의존하고 있었습니다.

정확한 타이머 인자를 검사하는 여섯 테스트 안에서만 Date.now를 고정합니다. 기존 기대값·assertion·운영 코드는 변경하지 않으며 afterEach의 restoreAllMocks로 복원합니다.

1ms씩 진행하는 시계로 기존 실패를 재현한 뒤 수정했습니다. 전체 3,685개 테스트/check와 커버리지100% 통과, 독립 리뷰 완료입니다.

@hmmhmmhm
hmmhmmhm merged commit 35775fc into main Oct 20, 2026
8 checks passed
@hmmhmmhm
hmmhmmhm deleted the test/oliveyoung-timeout-clock branch October 20, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0