Skip to content

Commit

Permalink
fix a flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao Wang committed Jul 16, 2021
1 parent 208dc05 commit c517539
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
import static com.google.common.collect.Sets.newHashSet;
import static fr.xephi.authme.listener.EventCancelVerifier.withServiceMock;
import static fr.xephi.authme.service.BukkitServiceTestHelper.setBukkitServiceToScheduleSyncDelayedTaskWithDelay;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasSize;
Expand Down Expand Up @@ -345,7 +345,7 @@ public void shouldHideChatFromUnauthed() {
// message sender + 3 recipients = 4
verify(listenerService, times(4)).shouldCancelEvent(any(Player.class));
verify(event, never()).setCancelled(anyBoolean());
assertThat(event.getRecipients(), contains(recipients.get(1), recipients.get(2)));
assertThat(event.getRecipients(), containsInAnyOrder(recipients.get(1), recipients.get(2)));
}

@Test
Expand Down

0 comments on commit c517539

Please sign in to comment.