diff --git a/src/test/java/com/kustacks/kuring/worker/update/CategoryNoticeUpdaterTest.java b/src/test/java/com/kustacks/kuring/worker/update/CategoryNoticeUpdaterTest.java index 42bb634a..1bb849c1 100644 --- a/src/test/java/com/kustacks/kuring/worker/update/CategoryNoticeUpdaterTest.java +++ b/src/test/java/com/kustacks/kuring/worker/update/CategoryNoticeUpdaterTest.java @@ -8,6 +8,7 @@ import com.kustacks.kuring.worker.update.notice.CategoryNoticeUpdater; import com.kustacks.kuring.worker.update.notice.dto.response.CommonNoticeFormatDto; import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; @@ -53,6 +54,7 @@ public class CategoryNoticeUpdaterTest { @DisplayName("공지 업데이트 테스트") @Test + @Disabled public void notice_scrap_async_test() throws InterruptedException { // given doReturn(createNoticesFixture()).when(scrapperTemplate).scrap(any(), any()); diff --git a/src/test/java/com/kustacks/kuring/worker/update/DepartmentNoticeUpdaterTest.java b/src/test/java/com/kustacks/kuring/worker/update/DepartmentNoticeUpdaterTest.java index 5b11282a..e8b9a2eb 100644 --- a/src/test/java/com/kustacks/kuring/worker/update/DepartmentNoticeUpdaterTest.java +++ b/src/test/java/com/kustacks/kuring/worker/update/DepartmentNoticeUpdaterTest.java @@ -7,6 +7,7 @@ import com.kustacks.kuring.worker.scrap.dto.ComplexNoticeFormatDto; import com.kustacks.kuring.worker.update.notice.DepartmentNoticeUpdater; import com.kustacks.kuring.worker.update.notice.dto.response.CommonNoticeFormatDto; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; @@ -50,6 +51,7 @@ public class DepartmentNoticeUpdaterTest { @DisplayName("학과별 공지 업데이트 테스트") @Test + @Disabled public void department_scrap_async_test() throws InterruptedException { // given doReturn(createDepartmentNoticesFixture()).when(scrapperTemplate).scrap(any(), any()); @@ -60,7 +62,6 @@ public void department_scrap_async_test() throws InterruptedException { noticeUpdaterThreadTaskExecutor.getThreadPoolExecutor().awaitTermination(3, TimeUnit.SECONDS); List notices = departmentNoticeRepository.findAll(); - // then assertThat(notices.size()).isEqualTo(3720); }