diff --git a/src/test/java/com/prgrms/catchtable/waiting/service/MemberWaitingServiceIntegrationTest.java b/src/test/java/com/prgrms/catchtable/waiting/service/MemberWaitingServiceIntegrationTest.java index 89cf1948..bb025f3b 100644 --- a/src/test/java/com/prgrms/catchtable/waiting/service/MemberWaitingServiceIntegrationTest.java +++ b/src/test/java/com/prgrms/catchtable/waiting/service/MemberWaitingServiceIntegrationTest.java @@ -83,7 +83,7 @@ void createWaitingNumberConcurrency() throws InterruptedException { latch.await(); //다른 스레드에서 수행중인 작업이 완료될 때까지 대기 - int waitingCount = shopRepository.findById(savedShop.getId()).orElseThrow() + int waitingCount = shopRepository.findAll().get(0) .getWaitingCount(); assertEquals(30, waitingCount);