mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 23:11:12 -08:00
Fixed more flaky tests
This commit is contained in:
parent
604e6f8c47
commit
bc6fcbc86d
5 changed files with 15 additions and 13 deletions
|
|
@ -24,7 +24,7 @@ public class ModTestBM extends GenericModTest{
|
|||
assertNotNull(type, "A mod block must be loaded.");
|
||||
assertSame(type.buildVisibility, BuildVisibility.shown, "A mod block must be buildable.");
|
||||
|
||||
world.loadMap(ApplicationTests.testMap);
|
||||
world.loadMap(maps.loadInternalMap("groundZero"));
|
||||
Tile t = world.tile(3, 3);
|
||||
|
||||
t.setBlock(type);
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import mindustry.gen.*;
|
|||
import mindustry.type.*;
|
||||
import org.junit.jupiter.api.*;
|
||||
|
||||
import static mindustry.Vars.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
//grabs a version-locked Heavy Armaments Industries commit and makes sure it initializes correctly
|
||||
|
|
@ -22,7 +23,7 @@ public class ModTestHAI extends GenericModTest{
|
|||
assertNotNull(type, "A mod unit must be loaded.");
|
||||
assertTrue(type.weapons.size > 0, "A mod unit must have a weapon.");
|
||||
|
||||
Vars.world.loadMap(ApplicationTests.testMap);
|
||||
Vars.world.loadMap(maps.loadInternalMap("groundZero"));
|
||||
|
||||
Unit unit = type.spawn(0, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue