Possible flaky test fix
This commit is contained in:
@@ -116,7 +116,6 @@ public class ApplicationTests{
|
|||||||
Thread.sleep(10);
|
Thread.sleep(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Block block = content.getByName(ContentType.block, "build2");
|
Block block = content.getByName(ContentType.block, "build2");
|
||||||
assertEquals("build2", block == null ? null : block.name, "2x2 construct block doesn't exist?");
|
assertEquals("build2", block == null ? null : block.name, "2x2 construct block doesn't exist?");
|
||||||
}catch(Throwable r){
|
}catch(Throwable r){
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import mindustry.gen.*;
|
|||||||
import mindustry.type.*;
|
import mindustry.type.*;
|
||||||
import org.junit.jupiter.api.*;
|
import org.junit.jupiter.api.*;
|
||||||
|
|
||||||
|
import static mindustry.Vars.*;
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
//grabs a version-locked exotic-mod commit and makes sure its content is parsed correctly
|
//grabs a version-locked exotic-mod commit and makes sure its content is parsed correctly
|
||||||
@@ -23,7 +24,7 @@ public class ModTestExotic extends GenericModTest{
|
|||||||
assertNotNull(type, "A mod unit must be loaded.");
|
assertNotNull(type, "A mod unit must be loaded.");
|
||||||
assertTrue(type.weapons.size > 0, "A mod unit must have a weapon.");
|
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);
|
Unit unit = type.spawn(0, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user