From 04ed324f6a1fd114eee58629e6803c65b62d8f7f Mon Sep 17 00:00:00 2001 From: Jinhong Kim Date: Tue, 17 Oct 2023 21:07:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20hit()=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=A7=80=EC=97=B0=EC=9C=BC=EB=A1=9C=20=EC=8B=A4=ED=8C=A8?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20Thread.sleep?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../numble/hittracker/service/HitTrackerServiceTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/it/numble/hittracker/service/HitTrackerServiceTests.java b/src/test/java/it/numble/hittracker/service/HitTrackerServiceTests.java index 3de950a..36aa71a 100644 --- a/src/test/java/it/numble/hittracker/service/HitTrackerServiceTests.java +++ b/src/test/java/it/numble/hittracker/service/HitTrackerServiceTests.java @@ -5,6 +5,7 @@ import it.numble.hittracker.entity.Url; import it.numble.hittracker.repository.DailyHitLogRepository; import it.numble.hittracker.repository.HitRepository; +import it.numble.hittracker.repository.IsCreatedUrlRepository; import it.numble.hittracker.repository.UrlRepository; import jakarta.annotation.PostConstruct; import jakarta.annotation.PreDestroy; @@ -37,7 +38,7 @@ public class HitTrackerServiceTests { private DailyHitLogRepository dailyHitLogRepository; @Autowired private HitRepository hitRepository; - + @BeforeEach void setUp() { hitRepository.flushAll(); @@ -60,12 +61,12 @@ void getHitInfo() { } @Test - @DisabledOnOs(value = OS.LINUX) - void hit() { + void hit() throws InterruptedException { // given String url = "http://test.com"; // when + Thread.sleep(500); hitTrackerService.hit(url); // then