mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Tests: improved performance in game tests;
This commit is contained in:
parent
c87477178a
commit
f107c1e4db
2 changed files with 24 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue