diff --git a/src/test/java/com/chat/yourway/integration/service/impl/ContactServiceImplTest.java b/src/test/java/com/chat/yourway/integration/service/impl/ContactServiceImplTest.java index 6e5c3715..89b93783 100644 --- a/src/test/java/com/chat/yourway/integration/service/impl/ContactServiceImplTest.java +++ b/src/test/java/com/chat/yourway/integration/service/impl/ContactServiceImplTest.java @@ -204,7 +204,7 @@ public void shouldSuccessfullyProhibitSendingPrivateMessages_whenUserChangePermi contactService.prohibitSendingPrivateMessages(contact); // Then - var result = contactService.findByEmail(contactEmail); + var result = contactRepository.findByEmailIgnoreCase(contactEmail).get(); assertThat(result) .extracting(Contact::isPermittedSendingPrivateMessage)