Skip to content

Commit

Permalink
fix : try로 감쌀경우 assert 오류가 발생한다?
Browse files Browse the repository at this point in the history
  • Loading branch information
hyun2371 committed Jan 17, 2024
1 parent fa4128f commit e91694a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ void createWaitingNumberConcurrency() throws InterruptedException {
memberRepository.save(member);
//여기까지는 실행됨
executorService.submit(() -> {
if (a==1){
throw new RuntimeException("memberWaitingService전");
try {
memberWaitingService.createWaiting(shop.getId(), member, request);

} finally {
latch.countDown();
}
memberWaitingService.createWaiting(shop.getId(), member, request);
latch.countDown();
});
}

Expand Down

0 comments on commit e91694a

Please sign in to comment.