From 599f179d9952fbfe4166de40ae9f70bb122e8d5f Mon Sep 17 00:00:00 2001 From: Dmytro Trotsenko Date: Thu, 18 Jan 2024 01:20:50 +0200 Subject: [PATCH] fix: fixed test where result got from caching method --- .../integration/service/impl/ContactServiceImplTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)