* GUI: increased ignore list max size from 100 to 500;

This commit is contained in:
Oleg Agafonov 2020-11-09 00:42:43 +04:00
parent e170f724d4
commit 5578437dde
3 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ public final class IgnoreList {
+ "<br>\\ignore username - add username to ignore list (they won't be able to chat or join to your new game)."
+ "<br>\\unignore username - remove a username from your ignore list on this server.</font>";
public static final int MAX_IGNORE_LIST_SIZE = 100;
public static final int MAX_IGNORE_LIST_SIZE = 500;
public static final Set<ChatMessage.MessageType> IGNORED_MESSAGE_TYPES
= ImmutableSet.of(ChatMessage.MessageType.TALK,
ChatMessage.MessageType.WHISPER_FROM);

View file

@ -63,12 +63,12 @@ public class IgnoreListTest {
@Test
public void ignoreMaxSize() throws Exception {
for (int i = 0; i < 100; i++) {
for (int i = 0; i < 500; i++) {
IgnoreList.ignore("test.com.xx", "" + i);
}
final String r = IgnoreList.ignore("test.com.xx", "lul");
assertEquals(r, "Your ignore list is too big (max 100), remove a user to be able to add a new one.");
assertThat(IgnoreList.getIgnoredUsers("test.com.xx").size(), is(100));
assertEquals(r, "Your ignore list is too big (max 500), remove a user to be able to add a new one.");
assertThat(IgnoreList.getIgnoredUsers("test.com.xx").size(), is(500));
}
@Test

View file

@ -517,7 +517,7 @@ public class ModalDoubleFacesCardsTest extends CardTestPlayerBase {
}
@Test
public void test_Single_GlasspoolMimic_FromNonHand() {
public void test_Single_GlasspoolMimic_PutToHand() {
// https://github.com/magefree/mage/issues/7174
// Glasspool Mimic