Skip to content

Commit

Permalink
remove atMost to verify behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
PaRangger committed Jan 19, 2025
1 parent 98dbe81 commit ca200cd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

import jakarta.validation.ConstraintViolation;
Expand Down Expand Up @@ -710,7 +709,7 @@ void testDecreaseUnreadMessageCountWhenDeletingMessage() throws Exception {

request.delete("/api/courses/" + courseId + "/messages/" + createdPost1.getId(), HttpStatus.OK);
// After deleting the message in the chat, the unread count in the chat should become 0
await().atMost(20, TimeUnit.SECONDS).untilAsserted(() -> {
await().untilAsserted(() -> {
SecurityUtils.setAuthorizationObject();
assertThat(getUnreadMessagesCount(oneToOneChat1, student2)).isZero();
assertThat(getUnreadMessagesCount(oneToOneChat1, student1)).isZero();
Expand Down

0 comments on commit ca200cd

Please sign in to comment.