From 431f46ac779e66bb86b288b0e2efca42ef017948 Mon Sep 17 00:00:00 2001 From: hanueleee Date: Mon, 16 Oct 2023 20:44:21 +0900 Subject: [PATCH] =?UTF-8?q?test:=20event=20=EC=B4=88=EA=B8=B0=ED=99=94=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../review/application/ReviewDeleteEventListenerTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/test/java/com/funeat/review/application/ReviewDeleteEventListenerTest.java b/backend/src/test/java/com/funeat/review/application/ReviewDeleteEventListenerTest.java index 0c9b8089..84a414b1 100644 --- a/backend/src/test/java/com/funeat/review/application/ReviewDeleteEventListenerTest.java +++ b/backend/src/test/java/com/funeat/review/application/ReviewDeleteEventListenerTest.java @@ -47,6 +47,7 @@ class 리뷰_삭제_이벤트_발행 { // then final var count = events.stream(ReviewDeleteEvent.class).count(); assertThat(count).isEqualTo(1); + events.clear(); } @Test @@ -69,6 +70,7 @@ class 리뷰_삭제_이벤트_발행 { // then final var count = events.stream(ReviewDeleteEvent.class).count(); assertThat(count).isEqualTo(0); + events.clear(); } } @@ -90,6 +92,7 @@ class 이미지_삭제_로직_작동 { // then verify(uploader, timeout(1000).times(1)).delete(any()); + events.clear(); } @Test @@ -107,6 +110,7 @@ class 이미지_삭제_로직_작동 { // then verify(uploader, timeout(1000).times(0)).delete(any()); + events.clear(); } @Test @@ -128,6 +132,7 @@ class 이미지_삭제_로직_작동 { // then assertThat(reviewRepository.findById(review.getId())).isEmpty(); + events.clear(); } } }