Tests: improved performance in game tests;

This commit is contained in:
Oleg Agafonov 2021-09-18 00:24:10 +04:00
parent c87477178a
commit f107c1e4db
2 changed files with 24 additions and 3 deletions

View file

@ -672,7 +672,8 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
Assert.fail("Can't add card " + cardName + " - alias " + aliasName + " already exists for " + player.getName());
}
CardInfo cardInfo = CardRepository.instance.findCard(cardName);
// game tests don't need cards from a specific set, so it can be from any set
CardInfo cardInfo = CardRepository.instance.findCard(cardName, true);
if (cardInfo == null) {
throw new IllegalArgumentException("[TEST] Couldn't find a card: " + cardName);
}