mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Uncomment flaky test
This commit is contained in:
parent
a7482f78ef
commit
27bc2918fd
1 changed files with 1 additions and 11 deletions
|
|
@ -16,7 +16,6 @@ import mindustry.entities.units.*;
|
|||
import mindustry.game.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.io.*;
|
||||
import mindustry.io.SaveIO.*;
|
||||
import mindustry.maps.*;
|
||||
import mindustry.mod.*;
|
||||
import mindustry.mod.Mods.*;
|
||||
|
|
@ -884,13 +883,7 @@ public class ApplicationTests{
|
|||
|
||||
logic.reset();
|
||||
state.rules.sector = zone.sector;
|
||||
try{
|
||||
world.loadGenerator(zone.generator.map.width, zone.generator.map.height, zone.generator::generate);
|
||||
}catch(SaveException e){
|
||||
//fails randomly and I don't care about fixing it
|
||||
e.printStackTrace();
|
||||
return;
|
||||
}
|
||||
zone.rules.get(state.rules);
|
||||
ObjectSet<Item> resources = new ObjectSet<>();
|
||||
boolean hasSpawnPoint = false;
|
||||
|
|
@ -930,7 +923,6 @@ public class ApplicationTests{
|
|||
|
||||
if(state.rules.winWave > 0) bossWave = state.rules.winWave - 1;
|
||||
|
||||
//TODO check for difficulty?
|
||||
for(int i = 1; i <= bossWave; i++){
|
||||
int total = 0;
|
||||
for(SpawnGroup spawn : spawns){
|
||||
|
|
@ -938,8 +930,6 @@ public class ApplicationTests{
|
|||
}
|
||||
|
||||
assertNotEquals(0, total, "Sector " + zone + " has no spawned enemies at wave " + i);
|
||||
//TODO this is flawed and needs to be changed later
|
||||
//assertTrue(total < 75, "Sector spawns too many enemies at wave " + i + " (" + total + ")");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue