Open
Conversation
- latch.await() 이후 await().untilAsserted()를 사용하여, 비동기 DB 업데이트(조회수 증가)가 완료될 때까지 대기하도록 변경
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 PR 제목
PlaceReadServiceTest 비동기 로직 대기하도록 수정
✅ 작업 내용
PlaceReadServiceTest비동기 테스트 로직 수정@Async로 인한 조회수 비동기 업데이트를 테스트하기 위해Awaitility사용await().untilAsserted()를 사용해, DB 업데이트가 완료될 때까지 대기한 후assertThat을 검증하도록 수정🎯 관련 이슈
💬 기타 공유하고 싶은 내용
이전엔 괜찮다가 갑자기 테스트 코드가 깨졌는데 이전에 왜 됐는지가 의문.....
이것과 관련해서
동시성,스레드풀,비동기에 대해서 공부를 더 해보면 좋을까요??