Skip to content

Commit

Permalink
test : 예외 발생 시 트랜잭션 종료 후 이미지 삭제 이벤트 발행 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
oownahcohc committed Dec 2, 2024
1 parent 0c3a80e commit 1ece76f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.springframework.transaction.support.TransactionTemplate;

import univ.earthbreaker.namu.event.EventPublisher;
import univ.earthbreaker.namu.event.image.DeleteUploadedImageEvent;
import univ.earthbreaker.namu.event.image.DeleteExternalUploadedImageEvent;
import univ.earthbreaker.namu.event.point.AddRewardPointEvent;
import univ.earthbreaker.namu.event.post.PostCreateEvent;

Expand Down Expand Up @@ -104,7 +104,7 @@ void rollbackTransactionAndTriggerImageDeletionEventOnException() {
);

// then
verify(eventPublisher).publish(new DeleteUploadedImageEvent(MISSION_POST_IMAGE_PATH_KEY));
verify(eventPublisher).publish(new DeleteExternalUploadedImageEvent(MISSION_POST_IMAGE_PATH_KEY));
}

@DisplayName("회원의 인증 성공한 미션을 찾아와 '미션 실패'상태로 변경한다")
Expand Down

0 comments on commit 1ece76f

Please sign in to comment.