Skip to content

Commit

Permalink
fix: fixed test where result got from caching method
Browse files Browse the repository at this point in the history
  • Loading branch information
Troha7 committed Jan 17, 2024
1 parent c184f68 commit 599f179
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 599f179

Please sign in to comment.