kuring-123 [수정] DateUtilTest가 간헐적으로 실패하던 문제 해결 #90
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://kuring.atlassian.net/browse/KURING-123
배경
CI 과정에서
DateUtilTest
가 간헐적으로 실패하는 문제가 있었습니다. 해당 테스트는 두java.util.Calendar
객체 간의 epoch의 차이를 계산하는 테스트입니다.수정 내용
DateUtil.getCalendar()
함수에서 대부분의 필드를 주어진 값으로 설정하지만,Calendar.MILLISECOND
필드는 설정하지 않고 있었습니다. 따라서getCalendar()
함수에서Calendar
객체를 만들 때 MILLISECOND 필드를 0으로 설정하도록 수정했습니다.