Skip to content

Commit

Permalink
Revert "fix: hit() 테스트 지연으로 실패하지 않도록 Thread.sleep 추가"
Browse files Browse the repository at this point in the history
This reverts commit 04ed324.

GitHub Actions CI에서 실패하는 이유가 이것때문이 아니라 내장 Redis가 리눅스에서 정상작동되지 않아서 그런 것 같음
  • Loading branch information
deepredk committed Oct 17, 2023
1 parent fc6d2c7 commit 67e9008
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
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;
Expand Down Expand Up @@ -38,7 +37,7 @@ public class HitTrackerServiceTests {
private DailyHitLogRepository dailyHitLogRepository;
@Autowired
private HitRepository hitRepository;

@BeforeEach
void setUp() {
hitRepository.flushAll();
Expand All @@ -61,12 +60,12 @@ void getHitInfo() {
}

@Test
void hit() throws InterruptedException {
@DisabledOnOs(value = OS.LINUX)
void hit() {
// given
String url = "http://test.com";

// when
Thread.sleep(500);
hitTrackerService.hit(url);

// then
Expand Down

0 comments on commit 67e9008

Please sign in to comment.