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 19, 2024
1 parent 40027ee commit 4e8c005
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 4e8c005

Please sign in to comment.