Skip to content

Commit ebe9850

Browse files
committed
test(VolunteerQueryService): deleteAllInBatch 추가
- getRankingByHours_noVolunteers 오류 해결
1 parent 8fcfe9b commit ebe9850

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/com/somemore/volunteer/service/VolunteerQueryServiceTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ void getRankingByHours() {
181181
@DisplayName("등록된 봉사자가 없는 경우 빈 랭킹 리스트를 반환한다.")
182182
@Test
183183
void getRankingByHours_noVolunteers() {
184+
// given
185+
volunteerRepository.deleteAllInBatch();
186+
184187
// when
185188
VolunteerRankingResponseDto response = volunteerQueryService.getRankingByHours();
186189

0 commit comments

Comments
 (0)