Skip to content

Commit

Permalink
test: 테스트에서 비활성 시켜보기
Browse files Browse the repository at this point in the history
  • Loading branch information
zbqmgldjfh committed Jan 15, 2024
1 parent f56860e commit de55165
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
Expand All @@ -60,7 +62,6 @@ public void department_scrap_async_test() throws InterruptedException {
noticeUpdaterThreadTaskExecutor.getThreadPoolExecutor().awaitTermination(3, TimeUnit.SECONDS);
List<DepartmentNotice> notices = departmentNoticeRepository.findAll();


// then
assertThat(notices.size()).isEqualTo(3720);
}
Expand Down

0 comments on commit de55165

Please sign in to comment.