Skip to content

Commit

Permalink
Test: 저번주 평균값을 조회할 때 날짜가 이번주로 되어있던 버그를 수정에 대한 테스트 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hee9841 committed Oct 28, 2024
1 parent 502f743 commit a83b5cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ void getWeeklySummary_Distance() {
.willReturn(List.of(new DailyRunningRecordSummary(runningDate.toLocalDate(), 3567)));

given(runningRecordRepository.findAvgDistanceMeterByMemberIdAndDateRange(
memberId, startWeekDate, nextOfEndWeekDate))
memberId, startWeekDate.minusDays(7), nextOfEndWeekDate.minusDays(7)))
.willReturn(800);

// when
Expand Down Expand Up @@ -505,7 +505,7 @@ void getWeeklySummary_Duration() {
.willReturn(List.of(new DailyRunningRecordSummary(runningDate.toLocalDate(), runningDurationSec)));

given(runningRecordRepository.findAvgDurationSecByMemberIdAndDateRange(
memberId, startWeekDate, nextOfEndWeekDate))
memberId, startWeekDate.minusDays(7), nextOfEndWeekDate.minusDays(7)))
.willReturn(runningDurationSec);

// when
Expand Down

0 comments on commit a83b5cb

Please sign in to comment.